[Bug target/82274] __builtin_mul_overflow fails to detect overflow for int64_t when compiled with -m32

2017-09-20 Thread mats at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82274 --- Comment #1 from Mats Palmgren --- Created attachment 42214 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42214&action=edit bug.cpp

[Bug c++/82274] New: __builtin_mul_overflow fails to detect overflow for int64_t when compiled with -m32

2017-09-20 Thread mats at mozilla dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mats at mozilla dot com Target Milestone: --- The result from this test should be: # g++ -std=c++11 bug.cpp && ./a.out SUCCESS: overflow detected Result i