public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r9-9905] Properly enable -freorder-blocks-and-partition on 64-bit Windows
@ 2022-01-10 16:07 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2022-01-10 16:07 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:90e463661d81f85a2365b89bea2b0cc6070ae024

commit r9-9905-g90e463661d81f85a2365b89bea2b0cc6070ae024
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Mon Jan 10 12:40:10 2022 +0100

    Properly enable -freorder-blocks-and-partition on 64-bit Windows
    
    The PR uncovered that -freorder-blocks-and-partition was working by accident
    on 64-bit Windows, i.e. the middle-end was supposed to disable it with SEH.
    After the change installed on mainline, the middle-end properly disables it,
    which is too bad since a significant amount of work went into it for SEH.
    
    gcc/
            PR target/103465
            * coretypes.h (unwind_info_type): Swap UI_SEH and UI_TARGET.

Diff:
---
 gcc/coretypes.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gcc/coretypes.h b/gcc/coretypes.h
index 2f6b8599d7c..eb0bda3a835 100644
--- a/gcc/coretypes.h
+++ b/gcc/coretypes.h
@@ -202,15 +202,17 @@ enum profile_update {
   PROFILE_UPDATE_PREFER_ATOMIC
 };
 
-/* Types of unwind/exception handling info that can be generated.  */
+/* Types of unwind/exception handling info that can be generated.
+   Note that a UI_TARGET (or larger) setting is considered to be
+   incompatible with -freorder-blocks-and-partition.  */
 
 enum unwind_info_type
 {
   UI_NONE,
   UI_SJLJ,
   UI_DWARF2,
-  UI_TARGET,
-  UI_SEH
+  UI_SEH,
+  UI_TARGET
 };
 
 /* Callgraph node profile representation.  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-10 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-10 16:07 [gcc r9-9905] Properly enable -freorder-blocks-and-partition on 64-bit Windows Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).