[Bug tree-optimization/84595] __builtin_trap() causes optimizer to remove code

2018-02-27 Thread danielgutson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84595 --- Comment #5 from Daniel Gutson --- (In reply to Andrew Pinski from comment #4) > (In reply to Daniel Gutson from comment #3) > > OK. That was my second suggested alternative. > > BTW I didn't see __builtin_trap documented as noreturn in the

[Bug tree-optimization/84595] __builtin_trap() causes optimizer to remove code

2018-02-27 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84595 --- Comment #4 from Andrew Pinski --- (In reply to Daniel Gutson from comment #3) > OK. That was my second suggested alternative. > BTW I didn't see __builtin_trap documented as noreturn in the documentation. Depends on the reading of

[Bug tree-optimization/84595] __builtin_trap() causes optimizer to remove code

2018-02-27 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84595 --- Comment #2 from Andrew Pinski --- https://github.com/scottt/debugbreak

[Bug tree-optimization/84595] __builtin_trap() causes optimizer to remove code

2018-02-27 Thread danielgutson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84595 --- Comment #3 from Daniel Gutson --- (In reply to Andrew Pinski from comment #1) > What you want is __builtin_breakpoint (if that existed). Trap is considered > as noreturn just like abort/exit. OK. That was my second suggested alternative.

[Bug tree-optimization/84595] __builtin_trap() causes optimizer to remove code

2018-02-27 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84595 --- Comment #1 from Andrew Pinski --- What you want is __builtin_breakpoint (if that existed). Trap is considered as noreturn just like abort/exit.