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

Issue 2632633002: Fix gcc error for static_cast the parameters of DCHECK_GT macro to unsigned in list.h. (Closed)

Created:
3 years, 11 months ago by zhengxing.li
Modified:
3 years, 11 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix gcc error for static_cast the parameters of DCHECK_GT macro to unsigned in list.h. The CL #42279 (https://codereview.chromium.org/2619353006 ) caused a gcc error (-Werror=strict-overflow). Here is the error message: In file included from .././src/globals.h:15:0, from .././src/allocation.h:9, from .././src/profiler/profile-generator.h:9, from ../src/profiler/profile-generator.cc:5: .././src/base/logging.h: In member function ‘void v8::internal::ProfileTree::TraverseDepthFirst(Callback*) [with Callback = v8::internal::DeleteNodesCallback]’: .././src/base/logging.h:179:70: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow] : MakeCheckOpString<Lhs, Rhs>(lhs, rhs, msg); \ ^ .././src/base/logging.h:191:1: note: in expansion of macro ‘DEFINE_CHECK_OP_IMPL’ DEFINE_CHECK_OP_IMPL(GT, > ) ^ CXX(target) /home/zxli/work/google-v8/v8/out/x87.optdebug/obj.target/v8_base/src/regexp/regexp-macro-assembler.o cc1plus: all warnings being treated as errors This CL fix it. BUG= Review-Url: https://codereview.chromium.org/2632633002 Cr-Commit-Position: refs/heads/master@{#42318} Committed: https://chromium.googlesource.com/v8/v8/+/6c67cd1886a6aea1c8a77c65e6d81a81a3a3b470

Patch Set 1 #

Patch Set 2 : add error message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/list.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (8 generated)
zhengxing.li
PTAL, thanks!
3 years, 11 months ago (2017-01-13 09:15:29 UTC) #2
Yang
lgtm
3 years, 11 months ago (2017-01-13 09:17:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632633002/1
3 years, 11 months ago (2017-01-13 09:19:24 UTC) #5
Clemens Hammacher
Wait, can you link the compiler error? Since http://crrev.com/2526783002, such checks are supposed to work. ...
3 years, 11 months ago (2017-01-13 09:20:33 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/11033) v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, ...
3 years, 11 months ago (2017-01-13 09:21:54 UTC) #8
zhengxing.li
On 2017/01/13 09:21:54, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 11 months ago (2017-01-13 09:28:41 UTC) #10
Clemens Hammacher
On 2017/01/13 at 09:28:41, zhengxing.li wrote: > On 2017/01/13 09:21:54, commit-bot: I haz the power ...
3 years, 11 months ago (2017-01-13 09:55:41 UTC) #11
zhengxing.li
On 2017/01/13 09:55:41, Clemens Hammacher wrote: > On 2017/01/13 at 09:28:41, zhengxing.li wrote: > > ...
3 years, 11 months ago (2017-01-13 10:11:22 UTC) #12
Clemens Hammacher
On 2017/01/13 at 10:11:22, zhengxing.li wrote: > On 2017/01/13 09:55:41, Clemens Hammacher wrote: > > ...
3 years, 11 months ago (2017-01-13 10:27:30 UTC) #13
zhengxing.li
On 2017/01/13 10:27:30, Clemens Hammacher wrote: > On 2017/01/13 at 10:11:22, zhengxing.li wrote: > > ...
3 years, 11 months ago (2017-01-13 10:48:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632633002/20001
3 years, 11 months ago (2017-01-13 10:48:48 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 11:35:38 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/6c67cd1886a6aea1c8a77c65e6d81a81a3a...

Powered by Google App Engine
This is Rietveld 408576698