Patchwork Move unwind_info_type to coretypes.h

login
register
mail settings
Submitter Richard Henderson
Date Oct. 7, 2010, 8:05 p.m.
Message ID <4CAE281F.1040800@redhat.com>
Download mbox | patch
Permalink /patch/67101/
State New
Headers show

Comments

Richard Henderson - Oct. 7, 2010, 8:05 p.m.
Not all files that include "tm_p.h" also include "target.h".
Moving this enum allows prototypes involving it to be shared
between i386.c and winnt.c via i386-protos.h.

Sanity bootstrapped on x86_64-linux.


r~
* target.h (enum unwind_info_type): Move ...
        * coretypes.h: ... here.

Patch

diff --git a/gcc/coretypes.h b/gcc/coretypes.h
index 419142a..3c63684 100644
--- a/gcc/coretypes.h
+++ b/gcc/coretypes.h
@@ -111,6 +111,16 @@  enum tls_model {
   TLS_MODEL_LOCAL_EXEC
 };
 
+/* Types of unwind/exception handling info that can be generated.  */
+
+enum unwind_info_type
+{
+  UI_NONE,
+  UI_SJLJ,
+  UI_DWARF2,
+  UI_TARGET
+};
+
 struct edge_def;
 typedef struct edge_def *edge;
 typedef const struct edge_def *const_edge;
diff --git a/gcc/target.h b/gcc/target.h
index f160e97..99dd1ee 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -128,16 +128,6 @@  enum vect_cost_for_stmt
   vec_perm
 };
 
-/* Types of unwind/exception handling info that can be generated.  */
-
-enum unwind_info_type
-{
-  UI_NONE,
-  UI_SJLJ,
-  UI_DWARF2,
-  UI_TARGET
-};
-
 /* The target structure.  This holds all the backend hooks.  */
 #define DEFHOOKPOD(NAME, DOC, TYPE, INIT) TYPE NAME;
 #define DEFHOOK(NAME, DOC, TYPE, PARAMS, INIT) TYPE (* NAME) PARAMS;