From: Kaveh R. Ghazi Date: Mon, 16 Sep 2002 17:22:14 +0000 (+0000) Subject: c4x-c.c, [...]: Include tm_p.h instead of the *-protos.h file directly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=245ff137371bf12598b8c9932140052851b359d7;p=gcc.git c4x-c.c, [...]: Include tm_p.h instead of the *-protos.h file directly. * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h instead of the *-protos.h file directly. * t-c4x, t-i370, t-v850: Depend on $(TM_P_H). * darwin.c (machopic_output_stub): Move prototype ... * darwin-protos.h (machopic_output_stub): ... here. * rs6000-protos.h (machopic_output_stub): Don't declare. From-SVN: r57201 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9c74bcae57..2235b8d697c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2002-09-16 Kaveh R. Ghazi + + * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h + instead of the *-protos.h file directly. + * t-c4x, t-i370, t-v850: Depend on $(TM_P_H). + * darwin.c (machopic_output_stub): Move prototype ... + * darwin-protos.h (machopic_output_stub): ... here. + * rs6000-protos.h (machopic_output_stub): Don't declare. + 2002-09-16 Richard Henderson * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__. diff --git a/gcc/config/c4x/c4x-c.c b/gcc/config/c4x/c4x-c.c index 5a680f554d9..36d78fb8505 100644 --- a/gcc/config/c4x/c4x-c.c +++ b/gcc/config/c4x/c4x-c.c @@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "cpplib.h" #include "c-pragma.h" -#include "c4x-protos.h" +#include "tm_p.h" static int c4x_parse_pragma PARAMS ((const char *, tree *, tree *)); diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c index 0ea79a6cf08..c394fe34d10 100644 --- a/gcc/config/c4x/c4x.c +++ b/gcc/config/c4x/c4x.c @@ -46,7 +46,7 @@ Boston, MA 02111-1307, USA. */ #include "ggc.h" #include "cpplib.h" #include "toplev.h" -#include "c4x-protos.h" +#include "tm_p.h" #include "target.h" #include "target-def.h" diff --git a/gcc/config/c4x/t-c4x b/gcc/config/c4x/t-c4x index aee0a7bb339..d1a83fb4231 100644 --- a/gcc/config/c4x/t-c4x +++ b/gcc/config/c4x/t-c4x @@ -7,8 +7,8 @@ LIB1ASMFUNCS = _divsf3 _divsi3 _udivsi3 _umodsi3 _modsi3 _mulsi3 \ TARGET_LIBGCC2_CFLAGS = -Dexit=unused_exit -c4x-c.o: $(srcdir)/config/c4x/c4x-c.c $(srcdir)/config/c4x/c4x-protos.h \ - $(CONFIG_H) $(SYSTEM_H) cpplib.h $(TREE_H) c-pragma.h toplev.h +c4x-c.o: $(srcdir)/config/c4x/c4x-c.c $(CONFIG_H) $(SYSTEM_H) cpplib.h \ + $(TREE_H) c-pragma.h toplev.h $(TM_P_H) $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< MULTILIB_OPTIONS = m30 msmall mmemparm diff --git a/gcc/config/darwin-protos.h b/gcc/config/darwin-protos.h index efce90af00c..129c636b657 100644 --- a/gcc/config/darwin-protos.h +++ b/gcc/config/darwin-protos.h @@ -112,6 +112,7 @@ extern void machopic_lazy_symbol_ptr_section PARAMS ((void)); extern void machopic_nl_symbol_ptr_section PARAMS ((void)); extern void machopic_symbol_stub_section PARAMS ((void)); extern void machopic_picsymbol_stub_section PARAMS ((void)); +extern void machopic_output_stub PARAMS ((FILE *, const char *, const char *)); extern void darwin_exception_section PARAMS ((void)); extern void darwin_eh_frame_section PARAMS ((void)); extern void darwin_globalize_label PARAMS ((FILE *, const char *)); diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 670a57aa3d8..fc9c7587623 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -38,9 +38,7 @@ Boston, MA 02111-1307, USA. */ #include "function.h" #include "ggc.h" #include "langhooks.h" -#include "darwin-protos.h" - -extern void machopic_output_stub PARAMS ((FILE *, const char *, const char *)); +#include "tm_p.h" static int machopic_data_defined_p PARAMS ((const char *)); static void update_non_lazy_ptrs PARAMS ((const char *)); diff --git a/gcc/config/i370/i370-c.c b/gcc/config/i370/i370-c.c index d2344bc0108..5651a5661c3 100644 --- a/gcc/config/i370/i370-c.c +++ b/gcc/config/i370/i370-c.c @@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "cpplib.h" #include "c-pragma.h" -#include "i370-protos.h" +#include "tm_p.h" #ifdef TARGET_HLASM diff --git a/gcc/config/i370/t-i370 b/gcc/config/i370/t-i370 index 049d84f6db9..34758d838fd 100644 --- a/gcc/config/i370/t-i370 +++ b/gcc/config/i370/t-i370 @@ -1,3 +1,3 @@ -i370-c.o: $(srcdir)/config/i370/i370-c.c $(srcdir)/config/i370/i370-protos.h \ - $(CONFIG_H) $(SYSTEM_H) cpplib.h $(TREE_H) c-pragma.h toplev.h +i370-c.o: $(srcdir)/config/i370/i370-c.c $(CONFIG_H) $(SYSTEM_H) cpplib.h \ + $(TREE_H) c-pragma.h toplev.h $(TM_P_H) $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c index 09099175093..c3bd1a0e571 100644 --- a/gcc/config/m32r/m32r.c +++ b/gcc/config/m32r/m32r.c @@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA. */ #include "recog.h" #include "toplev.h" #include "ggc.h" -#include "m32r-protos.h" +#include "tm_p.h" #include "target.h" #include "target-def.h" diff --git a/gcc/config/rs6000/rs6000-protos.h b/gcc/config/rs6000/rs6000-protos.h index 42092118f60..7dc0f9f7742 100644 --- a/gcc/config/rs6000/rs6000-protos.h +++ b/gcc/config/rs6000/rs6000-protos.h @@ -190,8 +190,6 @@ extern void debug_stack_info PARAMS ((rs6000_stack_t *)); extern const char *output_isel PARAMS ((rtx *)); extern int vrsave_operation PARAMS ((rtx, enum machine_mode)); -extern void machopic_output_stub PARAMS ((FILE *, const char *, const char *)); - /* Declare functions in rs6000-c.c */ #ifdef GCC_CPPLIB_H diff --git a/gcc/config/v850/t-v850 b/gcc/config/v850/t-v850 index 030f043f071..bd07abead75 100644 --- a/gcc/config/v850/t-v850 +++ b/gcc/config/v850/t-v850 @@ -87,6 +87,6 @@ INSTALL_LIBGCC = install-multilib TCFLAGS = -mno-app-regs -msmall-sld -Wa,-mwarn-signed-overflow -Wa,-mwarn-unsigned-overflow -v850-c.o: $(srcdir)/config/v850/v850-c.c $(RTL_H) $(TREE_H) $(CONFIG_H) +v850-c.o: $(srcdir)/config/v850/v850-c.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(TM_P_H) $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<