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

Issue 1128043002: Fix more -Werror=sign-compare bugs with GCC 4.9.2 (Closed)

Created:
5 years, 7 months ago by wingo
Modified:
5 years, 7 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix more -Werror=sign-compare bugs with GCC 4.9.2 R=svenpanne@chromium.org LOG=N BUG= Committed: https://crrev.com/004bb77ec5ca3a8c6a1a794b6db1807f3730a5d5 Cr-Commit-Position: refs/heads/master@{#28337}

Patch Set 1 #

Patch Set 2 : Rebase and fix new sign comparison errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -17 lines) Patch
M src/compiler/frame-elider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/heap/identity-map.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/counters-unittest.cc View 1 14 chunks +14 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
wingo
5 years, 7 months ago (2015-05-06 10:20:07 UTC) #1
wingo
What do you want to do with these, Sven? I can always build locally with ...
5 years, 7 months ago (2015-05-11 07:56:18 UTC) #2
wingo
On 2015/05/11 07:56:18, wingo wrote: > What do you want to do with these, Sven? ...
5 years, 7 months ago (2015-05-11 08:31:41 UTC) #3
Jakob Kummerow
Sven's on vacation. I like these changes (although I'm kinda surprised that your "homeopathic" clang=0 ...
5 years, 7 months ago (2015-05-11 10:29:10 UTC) #5
wingo
On 2015/05/11 10:29:10, Jakob wrote: > Sven's on vacation. I like these changes (although I'm ...
5 years, 7 months ago (2015-05-11 10:35:10 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1128043002/20001
5 years, 7 months ago (2015-05-11 10:35:27 UTC) #8
Jakob Kummerow
On 2015/05/11 10:35:10, wingo wrote: > Regarding my build, I think I was led to ...
5 years, 7 months ago (2015-05-11 10:50:08 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-11 11:07:17 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/004bb77ec5ca3a8c6a1a794b6db1807f3730a5d5 Cr-Commit-Position: refs/heads/master@{#28337}
5 years, 7 months ago (2015-05-11 11:07:35 UTC) #11
Sven Panne
5 years, 7 months ago (2015-05-18 10:53:00 UTC) #12
Message was sent while issue was closed.
On 2015/05/11 07:56:18, wingo wrote:
> What do you want to do with these, Sven?  I can always build locally with
> -Werror off, we can change the DCHECK_EQ somehow, or I can continue to submit
> these.  As you like, let me know.

[ Better late than never... ;-) ]

The underlying problem here is the combination of macros, templates, template
specializations and plain functions involved plus C++'s arcane rules for
overload resolution, see
http://en.cppreference.com/w/cpp/language/overload_resolution and admire its
beauty and simplicity, but be sure to read the whole page including the "Best
viable function" section, which is relevant for the warning you encounter. :-D
My personal POV is that the (D)CHECK_EQ macros (and friends) should be avoided
and only plain (D)CHECK should be used, but other people and presubmit.py
disagree. :-P So the rule of thumb should be: Make sure that you don't mix types
in the arguments of (D)CHECK_EQ and friends, and that's exactly what you did.

In a nutshell: LGTM, too.

Powered by Google App Engine
This is Rietveld 408576698