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

Issue 1393023003: Reland: Introduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again. (Closed)

Created:
5 years, 2 months ago by skomski
Modified:
5 years, 2 months ago
CC:
Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Reland: Introduce a V8_NORETURN macro and use it to make GCC 4.9.2 happy again. Without that, it has a few false positives about out-of-bounds array accesses. Also makes the clang static-analyzer happy. Original code review from Sven Panne: https://codereview.chromium.org/790723002/ CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_arm_dbg,v8_linux_arm64_dbg,v8_mac64_dbg,v8_win_compile_dbg,v8_linux_gcc_rel Committed: https://crrev.com/9a6c8b2455dd4121f77860b8c6de5f3ebb6ab9b0 Cr-Commit-Position: refs/heads/master@{#31185}

Patch Set 1 #

Patch Set 2 : avoid gcc 4.8 arm compiler bug on release and debug by moving checks to the bottom #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -21 lines) Patch
M include/v8config.h View 6 chunks +17 lines, -0 lines 0 comments Download
M src/arguments.h View 1 chunk +5 lines, -2 lines 0 comments Download
M src/base/logging.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/base/platform/platform.h View 1 chunk +1 line, -1 line 0 comments Download
M src/heap/spaces-inl.h View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M test/cctest/test-assembler-arm.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-atomicops.cc View 1 chunk +4 lines, -14 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
skomski
Hello again :( PTAL Since switching the checks resolved the check fail on v8 arm ...
5 years, 2 months ago (2015-10-08 11:48:16 UTC) #2
Benedikt Meurer
lgtm
5 years, 2 months ago (2015-10-08 12:55:07 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1393023003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1393023003/20001
5 years, 2 months ago (2015-10-08 17:05:50 UTC) #5
jochen (gone - plz use gerrit)
lgtm
5 years, 2 months ago (2015-10-08 17:24:05 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-08 17:45:59 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1393023003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1393023003/20001
5 years, 2 months ago (2015-10-08 18:51:10 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-08 19:00:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1393023003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1393023003/20001
5 years, 2 months ago (2015-10-08 19:01:30 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-08 19:02:35 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9a6c8b2455dd4121f77860b8c6de5f3ebb6ab9b0 Cr-Commit-Position: refs/heads/master@{#31185}
5 years, 2 months ago (2015-10-08 19:03:36 UTC) #16
Reid Kleckner
This broke Clang on Windows: http://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dbg%29/builds/2822/steps/compile/logs/stdio I guess ::raise is not marked noreturn in the ...
5 years, 2 months ago (2015-10-09 03:42:43 UTC) #18
hans
On 2015/10/09 03:42:43, Reid Kleckner wrote: > This broke Clang on Windows: > http://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dbg%29/builds/2822/steps/compile/logs/stdio > ...
5 years, 2 months ago (2015-10-09 16:32:02 UTC) #19
Nico
On 2015/10/09 16:32:02, hans wrote: > On 2015/10/09 03:42:43, Reid Kleckner wrote: > > This ...
5 years, 2 months ago (2015-10-09 16:36:54 UTC) #20
skomski
5 years, 2 months ago (2015-10-09 16:41:25 UTC) #21
Message was sent while issue was closed.
On 2015/10/09 16:36:54, Nico (offline until Fri Oct 9) wrote:
> On 2015/10/09 16:32:02, hans wrote:
> > On 2015/10/09 03:42:43, Reid Kleckner wrote:
> > > This broke Clang on Windows:
> > >
> >
>
http://build.chromium.org/p/chromium.fyi/builders/ClangToTWin%28dbg%29/builds...
> > > 
> > > I guess ::raise is not marked noreturn in the MSVC headers, so clang warns
> > that
> > > the function might return.
> > 
> > I wonder why it's not showing on our release bots. It does repro locally for
> me
> > in a release build.
> > 
> > Anyway, I suppose we can just put a FATAL() or something after the raise
call.
> 
> Yes, something like https://codereview.chromium.org/1213623017 (that's in
nacl,
> but we could do the same in v8)

Already fixed it in https://codereview.chromium.org/1390193003/.

Powered by Google App Engine
This is Rietveld 408576698