From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 835AB3858407; Thu, 9 Dec 2021 15:53:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 835AB3858407 From: "tomas.kalibera at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/103465] Invalid note with -fno-reorder-blocks-and-partition Date: Thu, 09 Dec 2021 15:53:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: tomas.kalibera at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2021 15:53:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103465 --- Comment #13 from Tomas Kalibera --- (In reply to Martin Li=C5=A1ka 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). >=20 > I see. Can you see the following note: >=20 > "%<-freorder-blocks-and-partition%> does not work " > "with exceptions on this architecture"); >=20 > w/ -freorder-blocks-and-partition option used? Not with x86_64-w64-mingw32-gcc -c -O3 -freorder-blocks-and-partition a.c=20 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 i= nfo on this architecture 3 | #pragma GCC optimize ("unroll-loops") | ^~~ uwi.c:5:1: note: '-freorder-blocks-and-partition' does not support unwind i= nfo on this architecture 5 | int main(int argc, char **argv) { | ^~~ this original example (uwi.c) has an GCC optimize pragma: #include #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"=