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

Issue 1657313003: Make dynamic_annotations build with -Wconstant-conversion from newer clangs. (Closed)

Created:
4 years, 10 months ago by Nico
Modified:
4 years, 10 months ago
Reviewers:
jzern, urvang
CC:
chromium-reviews, skal, urvang, vikasa
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make libwebp build with -Wconstant-conversion from newer clangs. After http://llvm.org/viewvc/llvm-project?rev=259271&view=rev, clang points out that _mm_set1_epi16(33050) causes an overflow in the short argument to _mm_set1_epi16(). Since there's no version that takes an unsigned short, add an explicit cast to tell the compiler that this is intentional. No behavior change. BUG=none R=urvang@chromium.org Committed: https://crrev.com/3ecb59fbcff8fa062d066c41d4b27ed6ece05403 Cr-Commit-Position: refs/heads/master@{#373004}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M third_party/libwebp/README.chromium View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/libwebp/dsp/yuv_sse2.c View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (5 generated)
Nico
Does this need to be upstreamed to somewhere? If so, to where?
4 years, 10 months ago (2016-02-02 15:00:20 UTC) #2
urvang
lgtm We typically change it upstream first and cherry-pick here, but I'll make an exception ...
4 years, 10 months ago (2016-02-02 19:25:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657313003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657313003/1
4 years, 10 months ago (2016-02-02 19:27:12 UTC) #6
Nico
Committed patchset #1 (id:1) to pending queue manually as 70f6f036e286070139da7600fe6b1d1d3c4de7b5 (presubmit successful).
4 years, 10 months ago (2016-02-02 19:37:23 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/3ecb59fbcff8fa062d066c41d4b27ed6ece05403 Cr-Commit-Position: refs/heads/master@{#373004}
4 years, 10 months ago (2016-02-02 19:38:28 UTC) #10
jzern
On 2016/02/02 15:00:20, Nico wrote: > Does this need to be upstreamed to somewhere? If ...
4 years, 10 months ago (2016-02-02 21:13:52 UTC) #11
Nico
On 2016/02/02 21:13:52, jzern wrote: > On 2016/02/02 15:00:20, Nico wrote: > > Does this ...
4 years, 10 months ago (2016-02-02 21:16:15 UTC) #12
jzern
On 2016/02/02 21:16:15, Nico wrote: > On 2016/02/02 21:13:52, jzern wrote: > > On 2016/02/02 ...
4 years, 10 months ago (2016-02-02 21:22:36 UTC) #13
Nico
On 2016/02/02 21:22:36, jzern wrote: > On 2016/02/02 21:16:15, Nico wrote: > > On 2016/02/02 ...
4 years, 10 months ago (2016-02-02 21:24:14 UTC) #14
jzern
4 years, 10 months ago (2016-02-02 22:38:43 UTC) #15
Message was sent while issue was closed.
On 2016/02/02 21:24:14, Nico wrote:
> On 2016/02/02 21:22:36, jzern wrote:
> > On 2016/02/02 21:16:15, Nico wrote:
> > > On 2016/02/02 21:13:52, jzern wrote:
> > > > On 2016/02/02 15:00:20, Nico wrote:
> > > > > Does this need to be upstreamed to somewhere? If so, to where?
> > > > 
> > > > libwebp's canonical repo is
> https://chromium.googlesource.com/webm/libwebp.
> > I
> > > > can upstream this later, the builders are being cycled to roll back the
> > clang
> > > > version there; 3.7.1 causes some issues with libvpx: one in that code
(vp9
> > > > encoder+TSAN) and one with a crash when using coverage+asan.
> > > 
> > > In Chromium, we don't use LLVM's releases, we have our own clang binary
that
> > > tracks LLVM trunk (which is currently at 3.9.0). Maybe you can use that
> binary
> > > too?
> > 
> > That could work, I'm not using anything exotic (asan/tsan/ubsan, x86-64 &
> x86).
> > These run on GCE on an older debian (wheezy; we could move to jessie easily
> > enough), so lib compatibility might be an issue with those binaries.
> 
> Chromium's clangs run on Precise, which might be old enough to work? You can
> check out pdfium's and v8's DEPS files on how to pull in chromium's clang.

Close, but no: libc6 2.13 vs. 2.15

Powered by Google App Engine
This is Rietveld 408576698