[Bug rtl-optimization/90214] UBSAN: signed integer overflow: 162675373468811328 - -9060696663385964544 cannot be represented in type 'long int'

2020-03-31 Thread xerofoify at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90214

Nicholas Krause  changed:

   What|Removed |Added

 CC||xerofoify at gmail dot com

--- Comment #1 from Nicholas Krause  ---
I've tried this on godbolt for gcc 9.1, gcc 9.2 and gcc 9.3. I've also tried
this on trunk from a recent build and it does not occur anymore. Seems to be
fixed now. Does this still occur for you, Martin as it does now occur for me on
x86 or power?

[Bug rtl-optimization/90214] UBSAN: signed integer overflow: 162675373468811328 - -9060696663385964544 cannot be represented in type 'long int'

2020-03-31 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90214

--- Comment #2 from Jonathan Wakely  ---
This is a ubsan error in GCC when GCC is built with ubsan. It's useless to test
on godbolt, because their GCC builds are not built with ubsan.