Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(244)

Issue 6674002: Cleanup: hide undefined behavior from the compiler better. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by ivanpe
Modified:
10 years, 4 months ago
Reviewers:
Ted Mielczarek, jcivelli, qsr, Mark Mentovai, digit
CC:
google-breakpad-dev_googlegroups.com, ppluzhnikov_google.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Cleanup: hide undefined behavior from the compiler better.

Submitting this on behalf of Paul Pluzhnikov.

R=mark@chromium.org

Committed: https://code.google.com/p/google-breakpad/source/detail?r=1342

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/linux/handler/exception_handler_unittest.cc View 1 2 5 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 11
ivanpe
10 years, 4 months ago #1
Mark Mentovai
Can we just use __builtin_trap()?
10 years, 4 months ago #2
ppluzhnikov_google.com
+// observes that UB statement is reached, it can assume that all statemnts s/statemnts/statements/ Sorry ...
10 years, 4 months ago #3
ivanpe
On 2014/06/30 22:28:22, ppluzhnikov_google.com wrote: > +// observes that UB statement is reached, it can ...
10 years, 4 months ago #4
Mark Mentovai
OK, so if I understand correctly, what’s happening with __builtin_trap() isn’t so much that GCC ...
10 years, 4 months ago #5
ppluzhnikov_google.com
-cc google-breakpad-dev to which I can't send. On Tue, Jul 1, 2014 at 9:13 AM, ...
10 years, 4 months ago #6
Mark Mentovai
Thanks for the explanation. LGTM. I am concerned that this will rear its head again ...
10 years, 4 months ago #7
ppluzhnikov_google.com
-cc google-breakpad-dev On Tue, Jul 1, 2014 at 10:01 AM, <mark@chromium.org> wrote: > Thanks for ...
10 years, 4 months ago #8
ivanpe
Committed patchset #3 manually as r1342 (presubmit successful).
10 years, 4 months ago #9
Ted Mielczarek
Fancy compilers getting too smart for their own good! If we replaced this with a ...
10 years, 4 months ago #10
ppluzhnikov_google.com
10 years, 4 months ago #11
-cc google-breakpad-dev

On Mon, Jul 7, 2014 at 4:13 AM,  <ted.mielczarek@gmail.com> wrote:
> Fancy compilers getting too smart for their own good! If we replaced
> this with a block of inline assembly, would that be enough to work
> around GCC's optimizer?

Inline assembly would work, but then you would have to implement it
separately for every supported architecture.


-- 
Paul Pluzhnikov
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted