Andreas Tobler wrote:
Zack Weinberg wrote:
On Wed, Jan 25, 2006 at 12:17:00AM +0100, Andreas Tobler wrote:
Andreas Tobler wrote:
I get the following bootstrap break on solaris 8:

cc1: warnings being treated as errors
insn-automata.c: In function 'internal_insn_latency':
insn-automata.c:1969: warning: implicit declaration of function 'store_data_bypass_p'
[...]
Hm, adding "insn-config.h" and "recog.h" to insn-automata.c makes it compile. Try now to do it the right way via genautomata.c

Is this correct, Zack?

Oh, probably. insn-attrtab.c sees those headers, after all. Don't forget
to update the dependency list for insn-automata.o in Makefile.in.

Yeah, in the test now.

I'll send a patch later today.

Ok, here the patch, tested with bootstrap on sparc-solaris8.

Ok for main?

Andreas

2006-01-25  Andreas Tobler  <[EMAIL PROTECTED]>

        * genautomata.c (main): Add insn-config.h and recog.h to the
        include list.
        * Makefile.in (insn-automata.o): Adjust dependencies for the above
        includes.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 110205)
+++ Makefile.in (working copy)
@@ -2640,7 +2640,7 @@
   $(TM_H) $(RTL_H) $(REGS_H) real.h output.h $(INSN_ATTR_H)            \
   insn-config.h toplev.h $(RECOG_H) $(TM_P_H) $(FLAGS_H)
 insn-automata.o : insn-automata.c $(CONFIG_H) $(SYSTEM_H) coretypes.h  \
-  $(TM_H) $(RTL_H) $(INSN_ATTR_H)
+  $(TM_H) $(RTL_H) $(INSN_ATTR_H) insn-config.h $(RECOG_H)
 insn-emit.o : insn-emit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)  \
   $(RTL_H) $(EXPR_H) real.h output.h insn-config.h $(OPTABS_H)         \
   reload.h $(RECOG_H) toplev.h $(FUNCTION_H) $(FLAGS_H) hard-reg-set.h \
Index: genautomata.c
===================================================================
--- genautomata.c       (revision 110205)
+++ genautomata.c       (working copy)
@@ -9255,7 +9255,9 @@
        "#include \"coretypes.h\"\n"
        "#include \"tm.h\"\n"
        "#include \"rtl.h\"\n"
-       "#include \"insn-attr.h\"\n");
+       "#include \"insn-attr.h\"\n"
+       "#include \"insn-config.h\"\n"
+       "#include \"recog.h\"\n");
 
   if (VEC_length (decl_t, decls) > 0)
     {

Reply via email to