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

Issue 1207323004: Add __builtin_unreachable() to CRASH() when using Clang on Windows. (Closed)

Created:
5 years, 5 months ago by Sam McNally
Modified:
5 years, 5 months ago
Reviewers:
Nico
CC:
blink-reviews, blink-reviews-wtf_chromium.org, Mikhail, chrome-apps-syd-reviews_chromium.org, Reid Kleckner
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add __builtin_unreachable() to CRASH() when using Clang on Windows. Currently, when building with Clang on Windows, NO_RETURN_DUE_TO_CRASH is enabled, but CRASH is defined as __debugbreak, which Clang doesn't recognise as a call that will never return. This causes -Winvalid-noreturn to trigger warnings. This CL changes CRASH() to also include __builtin_unreachable() when using Clang on Windows. BUG=504698 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198250

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M Source/wtf/Assertions.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M Source/wtf/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/wtf/wtf.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (2 generated)
Sam McNally
5 years, 5 months ago (2015-07-02 02:49:33 UTC) #2
Nico
https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h File Source/wtf/Assertions.h (right): https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h#newcode130 Source/wtf/Assertions.h:130: #if COMPILER(GCC) Isn't it a better fix to change ...
5 years, 5 months ago (2015-07-02 04:54:37 UTC) #3
Sam McNally
https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h File Source/wtf/Assertions.h (right): https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h#newcode130 Source/wtf/Assertions.h:130: #if COMPILER(GCC) On 2015/07/02 04:54:37, Nico wrote: > Isn't ...
5 years, 5 months ago (2015-07-02 05:09:41 UTC) #4
Nico
https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h File Source/wtf/Assertions.h (right): https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h#newcode130 Source/wtf/Assertions.h:130: #if COMPILER(GCC) On 2015/07/02 05:09:40, Sam McNally wrote: > ...
5 years, 5 months ago (2015-07-02 05:22:36 UTC) #5
Sam McNally
https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h File Source/wtf/Assertions.h (right): https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h#newcode130 Source/wtf/Assertions.h:130: #if COMPILER(GCC) On 2015/07/02 05:22:36, Nico wrote: > On ...
5 years, 5 months ago (2015-07-02 06:01:13 UTC) #6
Sam McNally
https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h File Source/wtf/Assertions.h (right): https://codereview.chromium.org/1207323004/diff/1/Source/wtf/Assertions.h#newcode130 Source/wtf/Assertions.h:130: #if COMPILER(GCC) On 2015/07/02 06:01:12, Sam McNally wrote: > ...
5 years, 5 months ago (2015-07-03 01:16:05 UTC) #7
Nico
lgtm, I think this is a pretty nice way to go about this. rnk, should ...
5 years, 5 months ago (2015-07-03 01:33:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1207323004/20001
5 years, 5 months ago (2015-07-03 01:36:17 UTC) #10
blink-reviews
On Thu, Jul 2, 2015 at 6:33 PM, <thakis@chromium.org> wrote: > rnk, should we make ...
5 years, 5 months ago (2015-07-03 01:41:32 UTC) #11
commit-bot: I haz the power
5 years, 5 months ago (2015-07-03 02:49:32 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198250

Powered by Google App Engine
This is Rietveld 408576698