https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103465
--- Comment #13 from Tomas Kalibera <tomas.kalibera at gmail dot com> --- (In reply to Martin Liška from comment #12) > > So, still, the reorder-stacks-and-partition optimization is not dropped by > > target (though I am not claiming they should be dropped, I don't know, > > that's only what I learned from your response to my original report). > > I see. Can you see the following note: > > "%<-freorder-blocks-and-partition%> does not work " > "with exceptions on this architecture"); > > w/ -freorder-blocks-and-partition option used? Not with x86_64-w64-mingw32-gcc -c -O3 -freorder-blocks-and-partition a.c but I do (the variant for C) with the original example for this bug report x86_64-w64-mingw32-gcc -c -O3 -freorder-blocks-and-partition uwi.c -Wall uwi.c:3:9: note: '-freorder-blocks-and-partition' does not support unwind info on this architecture 3 | #pragma GCC optimize ("unroll-loops") | ^~~ uwi.c:5:1: note: '-freorder-blocks-and-partition' does not support unwind info on this architecture 5 | int main(int argc, char **argv) { | ^~~ this original example (uwi.c) has an GCC optimize pragma: #include<stdio.h> #pragma GCC optimize ("unroll-loops") int main(int argc, char **argv) { printf("Hello 1\n"); printf("Hello 2\n"); printf("Hello 3\n"); return 0; } For C++ I get the note with "does not work with exceptions on this architecture"