]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Add SEH to machine_function
authorZac Walker <zacwalker@microsoft.com>
Tue, 20 Feb 2024 17:10:08 +0000 (18:10 +0100)
committerChristophe Lyon <christophe.lyon@linaro.org>
Tue, 7 May 2024 16:02:34 +0000 (16:02 +0000)
SEH is not enabled in aarch64-w64-mingw32 target yet. However, it is
needed to be declared in machine_function for reusing winnt.cc.

gcc/ChangeLog:

* config/aarch64/aarch64.h (struct seh_frame_state): Declare SEH
structure in machine_function.
(GTY): Add SEH field.

gcc/config/aarch64/aarch64.h

index 319fe032a4b32d25dc1502e93c12006c60724186..bbf11faaf4b4340956094a983f8b0dc2649b2d27 100644 (file)
@@ -1046,6 +1046,9 @@ struct GTY (()) aarch64_frame
   bool is_scs_enabled;
 };
 
+/* Private to winnt.cc.  */
+struct seh_frame_state;
+
 #ifdef hash_set_h
 typedef struct GTY (()) machine_function
 {
@@ -1086,6 +1089,9 @@ typedef struct GTY (()) machine_function
      still exists and still fulfils its original purpose. the same register
      can be reused by other code.  */
   rtx_insn *advsimd_zero_insn;
+
+  /* During SEH output, this is non-null.  */
+  struct seh_frame_state * GTY ((skip (""))) seh;
 } machine_function;
 #endif
 #endif