Patchwork [SEH] Use tm_p.h in tree-vect-data-refs.c.

login
register
mail settings
Submitter Richard Henderson
Date Sept. 7, 2010, 10:08 p.m.
Message ID <4C86B7CC.9080300@redhat.com>
Download mbox | patch
Permalink /patch/64076/
State New
Headers show

Comments

Richard Henderson - Sept. 7, 2010, 10:08 p.m.
This file uses MAX_STACK_ALIGNMENT whose definition in cygming.h
will shortly depend on the ABI in use.  We need to include tm_p.h
to make sure that the supporting declarations are seen.

Tested on x86_64-{linux,mingw32}, i686-cygwin.


r~
* tree-vect-data-refs.c: Include tm_p.h.
	* Makefile.in (tree-vect-data-refs.o): Update deps.
	* config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
	Move delarations outside #ifdef RTX_CODE.

Patch

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index acffb60..736963c 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2753,7 +2753,8 @@  tree-vect-stmts.o: tree-vect-stmts.c $(CONFIG_H) $(SYSTEM_H) \
 tree-vect-data-refs.o: tree-vect-data-refs.c $(CONFIG_H) $(SYSTEM_H) \
    coretypes.h $(TM_H) $(GGC_H) $(TREE_H) $(TARGET_H) $(BASIC_BLOCK_H) \
    $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) $(CFGLOOP_H) \
-   $(EXPR_H) $(OPTABS_H) $(SCEV_H) $(TREE_VECTORIZER_H) $(TOPLEV_H) $(DIAGNOSTIC_CORE_H) \
+   $(EXPR_H) $(OPTABS_H) $(SCEV_H) $(TREE_VECTORIZER_H) $(TOPLEV_H) \
+   $(DIAGNOSTIC_CORE_H) $(TM_P_H) \
    tree-pretty-print.h gimple-pretty-print.h
 tree-vectorizer.o: tree-vectorizer.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
    $(TM_H) $(GGC_H) $(TREE_H) $(DIAGNOSTIC_H) $(TREE_FLOW_H) $(TREE_DUMP_H) \
diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h
index de6b961..a7b5948 100644
--- a/gcc/config/i386/i386-protos.h
+++ b/gcc/config/i386/i386-protos.h
@@ -35,6 +35,9 @@  extern void ix86_expand_epilogue (int);
 extern void ix86_output_addr_vec_elt (FILE *, int);
 extern void ix86_output_addr_diff_elt (FILE *, int, int);
 
+extern enum calling_abi ix86_cfun_abi (void);
+extern enum calling_abi ix86_function_type_abi (const_tree);
+
 #ifdef RTX_CODE
 extern int standard_80387_constant_p (rtx);
 extern const char *standard_80387_constant_opcode (rtx);
@@ -142,8 +145,6 @@  extern int ix86_function_arg_boundary (enum machine_mode, const_tree);
 extern bool ix86_solaris_return_in_memory (const_tree, const_tree);
 extern rtx ix86_force_to_memory (enum machine_mode, rtx);
 extern void ix86_free_from_memory (enum machine_mode);
-extern enum calling_abi ix86_cfun_abi (void);
-extern enum calling_abi ix86_function_type_abi (const_tree);
 extern void ix86_call_abi_override (const_tree);
 extern int ix86_reg_parm_stack_space (const_tree);
 
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c
index 7944d8b..ff4f0db 100644
--- a/gcc/tree-vect-data-refs.c
+++ b/gcc/tree-vect-data-refs.c
@@ -26,6 +26,7 @@  along with GCC; see the file COPYING3.  If not see
 #include "tm.h"
 #include "ggc.h"
 #include "tree.h"
+#include "tm_p.h"
 #include "target.h"
 #include "basic-block.h"
 #include "tree-pretty-print.h"