[Bug c++/81692] New: Bogus noreturn warning

2017-08-03 Thread gcc at sjor dot sg
: unassigned at gcc dot gnu.org Reporter: gcc at sjor dot sg Target Milestone: --- The following code will cause a -Wreturn-type warning to be emitted in the 'foo' function, even though 'foo' calls throw_exception_ which is marked __attribute__((__noreturn__)).

[Bug c++/81410] New: O3 breaks code

2017-07-12 Thread gcc at sjor dot sg
: unassigned at gcc dot gnu.org Reporter: gcc at sjor dot sg Target Milestone: --- Created attachment 41729 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41729&action=edit Minimal test case See attached code. Tested on Ubuntu's gcc 6.2.0, Debian's 6.3.0, Arch's 7.1.1

[Bug c++/81410] O3 breaks code

2017-07-12 Thread gcc at sjor dot sg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81410 --- Comment #1 from Sjors Gielen --- This is on x86_64 by the way. Doesn't happen with -m32.

[Bug c++/81410] O3 breaks code

2017-07-12 Thread gcc at sjor dot sg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81410 --- Comment #3 from Sjors Gielen --- A trivial workaround is put inside the first loop: std::cout << ""; I suppose this prevents loop optimization by introducing potential side effects.

[Bug tree-optimization/81410] [6 Regression] -O3 breaks code

2017-10-10 Thread gcc at sjor dot sg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81410 --- Comment #14 from Sjors Gielen --- (In reply to Jakub Jelinek from comment #13) > GCC 5 branch is being closed Has there been a fix for this issue at all in a 5 branch release? And, for the 6 branch, will there be a release with a fix for th