Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Issue 2011073002: Work around missing __mulodi4() on ARMv7 + Clang builds. (Closed)

Created:
4 years, 7 months ago by mtklein_C
Modified:
4 years, 6 months ago
Reviewers:
djsollen, mtklein
CC:
reviews_skia.org, ethannicholas, bsalomon
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Work around missing __mulodi4() on ARMv7 + Clang builds. __mulodi4() is roughly, int64_t __mulodi4(int64_t a, int64_t b, int* overflow) { int64_t result = a*b; *overflow = did_overflow(result); return result; } It's used by Clang's __builtin_smulll_overflow(), which is basically the same except it swaps the positions of the return value and the out parameter. DNG SDK in turn uses __builtin_smulll_overflow(). When building ARMv7 binaries with Clang, __mulodi4() turns up as a missing symbol. That's because it's defined in a separate compiler-rt library. I have not been able to link that. Instead, I've provided our own trivial __builtin_smulll_overflow(). Before this patch both nanobench and DM failed dynamically linking __mulodi4(). After this patch nanobench runs for a while, eventually segfaulting. DM immediately segfaults. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2011073002 Committed: https://skia.googlesource.com/skia/+/9834696ed8bda2c1a5009b07e9092428cc1cd7bc

Patch Set 1 #

Patch Set 2 : false is actually right #

Patch Set 3 : add bug note #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M gyp/dng_sdk.gyp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
mtklein_C
4 years, 7 months ago (2016-05-26 18:10:42 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011073002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2011073002/20001
4 years, 7 months ago (2016-05-26 18:10:58 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-26 18:25:29 UTC) #8
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-26 18:25:37 UTC) #9
djsollen
can you note in the comments that this is being tracked in b/29412086? Other than ...
4 years, 6 months ago (2016-06-23 17:42:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2011073002/40001
4 years, 6 months ago (2016-06-23 17:45:54 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 18:21:02 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/9834696ed8bda2c1a5009b07e9092428cc1cd7bc

Powered by Google App Engine
This is Rietveld 408576698