From bf008cdddaefd88bd2d1053f8825cbe10ed068ae Mon Sep 17 00:00:00 2001 From: ghazi Date: Sun, 24 Oct 1999 19:38:53 +0000 Subject: [PATCH] * output.h (ctors_section, dtors_section, bss_section): Prototype. * alpha/alpha-interix.h (text_section): Delete prototype. * alpha/elf.h (text_section): Likewise. * arm/linux-elf.h (text_section): Likewise. * arm/linux-telf.h (text_section): Likewise. * c4x/c4x.h (text_section): Likewise. * dsp16xx/dsp16xx.h (bss_section): Likewise. * elfos.h (text_section): Likewise. * i386/aix386ng.h (text_section): Likewise. * i386/i386-interix.h (text_section): Likewise. * i386/sco5.h (text_section): Likewise. * i386/svr3gas.h (text_section): Likewise. * nextstep.h (text_section): Likewise. * psos.h (text_section): Likewise. * ptx4.h (text_section): Likewise. * svr3.h (text_section): Likewise. * svr4.h (text_section, ctors_section, dtors_section): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30145 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 21 +++++++++++++++++++++ gcc/config/alpha/alpha-interix.h | 2 -- gcc/config/alpha/elf.h | 2 -- gcc/config/arm/linux-elf.h | 2 -- gcc/config/arm/linux-telf.h | 2 -- gcc/config/c4x/c4x.h | 1 - gcc/config/dsp16xx/dsp16xx.h | 1 - gcc/config/elfos.h | 2 -- gcc/config/i386/aix386ng.h | 1 - gcc/config/i386/i386-interix.h | 2 -- gcc/config/i386/sco5.h | 1 - gcc/config/i386/svr3gas.h | 1 - gcc/config/nextstep.h | 1 - gcc/config/psos.h | 2 -- gcc/config/ptx4.h | 2 -- gcc/config/svr3.h | 1 - gcc/config/svr4.h | 4 ---- gcc/output.h | 13 +++++++++++++ 18 files changed, 34 insertions(+), 27 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49c2c36f5dc..5210eea1078 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,24 @@ +Sun Oct 24 15:35:43 1999 Kaveh R. Ghazi + + * output.h (ctors_section, dtors_section, bss_section): Prototype. + + * alpha/alpha-interix.h (text_section): Delete prototype. + * alpha/elf.h (text_section): Likewise. + * arm/linux-elf.h (text_section): Likewise. + * arm/linux-telf.h (text_section): Likewise. + * c4x/c4x.h (text_section): Likewise. + * dsp16xx/dsp16xx.h (bss_section): Likewise. + * elfos.h (text_section): Likewise. + * i386/aix386ng.h (text_section): Likewise. + * i386/i386-interix.h (text_section): Likewise. + * i386/sco5.h (text_section): Likewise. + * i386/svr3gas.h (text_section): Likewise. + * nextstep.h (text_section): Likewise. + * psos.h (text_section): Likewise. + * ptx4.h (text_section): Likewise. + * svr3.h (text_section): Likewise. + * svr4.h (text_section, ctors_section, dtors_section): Likewise. + Sun Oct 24 15:20:59 1999 Kaveh R. Ghazi * final.c (peephole): Delete prototype. diff --git a/gcc/config/alpha/alpha-interix.h b/gcc/config/alpha/alpha-interix.h index f90d06f506a..5e6bc02868f 100644 --- a/gcc/config/alpha/alpha-interix.h +++ b/gcc/config/alpha/alpha-interix.h @@ -121,8 +121,6 @@ Boston, MA 02111-1307, USA. */ #undef READONLY_DATA_SECTION #define READONLY_DATA_SECTION() const_section () -extern void text_section (); - #define CONST_SECTION_FUNCTION \ void \ const_section () \ diff --git a/gcc/config/alpha/elf.h b/gcc/config/alpha/elf.h index a4e1acc1c9c..cb63845de61 100644 --- a/gcc/config/alpha/elf.h +++ b/gcc/config/alpha/elf.h @@ -268,8 +268,6 @@ do { \ #undef READONLY_DATA_SECTION #define READONLY_DATA_SECTION() const_section () -extern void text_section (); - #define CONST_SECTION_FUNCTION \ void const_section PROTO ((void)); \ void \ diff --git a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h index 39054902ba3..87fc6784e59 100644 --- a/gcc/config/arm/linux-elf.h +++ b/gcc/config/arm/linux-elf.h @@ -166,8 +166,6 @@ do { \ definition in the target-specific file which includes this file. */ #define SUBTARGET_EXTRA_SECTION_FUNCTIONS CONST_SECTION_FUNCTION -extern void text_section (); - #define CONST_SECTION_ASM_OP ".section\t.rodata" #define CONST_SECTION_FUNCTION \ diff --git a/gcc/config/arm/linux-telf.h b/gcc/config/arm/linux-telf.h index 8be385295c3..dd730d86472 100644 --- a/gcc/config/arm/linux-telf.h +++ b/gcc/config/arm/linux-telf.h @@ -125,8 +125,6 @@ Boston, MA 02111-1307, USA. */ definition in the target-specific file which includes this file. */ #define SUBTARGET_EXTRA_SECTION_FUNCTIONS CONST_SECTION_FUNCTION -extern void text_section (); - #define CONST_SECTION_ASM_OP ".section\t.rodata" #define CONST_SECTION_FUNCTION \ diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h index 5644ee2c075..20a58350c3c 100644 --- a/gcc/config/c4x/c4x.h +++ b/gcc/config/c4x/c4x.h @@ -1940,7 +1940,6 @@ fini_section () \ void \ const_section () \ { \ - extern void text_section(); \ if (! USE_CONST_SECTION) \ text_section(); \ else if (in_section != in_const) \ diff --git a/gcc/config/dsp16xx/dsp16xx.h b/gcc/config/dsp16xx/dsp16xx.h index 320a2a120df..5d96207e2a7 100644 --- a/gcc/config/dsp16xx/dsp16xx.h +++ b/gcc/config/dsp16xx/dsp16xx.h @@ -72,7 +72,6 @@ extern void function_epilogue (); extern int dsp1600_comparison_reverse (); extern void double_reg_from_memory (); extern void double_reg_to_memory (); -extern void bss_section (); extern struct rtx_def *dsp16xx_function_arg (); extern void dsp16xx_function_arg_advance (); extern enum rtx_code next_cc_user_code (); diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index a23805e8a84..ad88b1e326c 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -280,8 +280,6 @@ do { \ #define READONLY_DATA_SECTION() const_section () -extern void text_section (); - #define CONST_SECTION_FUNCTION \ void \ const_section () \ diff --git a/gcc/config/i386/aix386ng.h b/gcc/config/i386/aix386ng.h index 9a8dae632c3..521dd946f9d 100644 --- a/gcc/config/i386/aix386ng.h +++ b/gcc/config/i386/aix386ng.h @@ -124,7 +124,6 @@ Boston, MA 02111-1307, USA. */ void \ const_section () \ { \ - extern void text_section(); \ text_section(); \ } diff --git a/gcc/config/i386/i386-interix.h b/gcc/config/i386/i386-interix.h index 30017be1a50..70b8bc4bd70 100644 --- a/gcc/config/i386/i386-interix.h +++ b/gcc/config/i386/i386-interix.h @@ -304,8 +304,6 @@ Boston, MA 02111-1307, USA. */ #undef READONLY_DATA_SECTION #define READONLY_DATA_SECTION() const_section () -extern void text_section (); - #define CONST_SECTION_FUNCTION \ void \ const_section () \ diff --git a/gcc/config/i386/sco5.h b/gcc/config/i386/sco5.h index bea9ede3bbf..0790e38f140 100644 --- a/gcc/config/i386/sco5.h +++ b/gcc/config/i386/sco5.h @@ -590,7 +590,6 @@ do { \ void \ const_section () \ { \ - extern void text_section(); \ if (!USE_CONST_SECTION) \ text_section(); \ else if (in_section != in_const) \ diff --git a/gcc/config/i386/svr3gas.h b/gcc/config/i386/svr3gas.h index a288b84e524..308aa5a35a9 100644 --- a/gcc/config/i386/svr3gas.h +++ b/gcc/config/i386/svr3gas.h @@ -178,7 +178,6 @@ fini_section () \ void \ const_section () \ { \ - extern void text_section(); \ if (!USE_CONST_SECTION) \ text_section(); \ else if (in_section != in_const) \ diff --git a/gcc/config/nextstep.h b/gcc/config/nextstep.h index ea56709d9c9..05d1bd40fee 100644 --- a/gcc/config/nextstep.h +++ b/gcc/config/nextstep.h @@ -322,7 +322,6 @@ extern int handle_pragma (); void \ FUNCTION () \ { \ - extern void text_section (); \ extern void objc_section_init (); \ extern int flag_no_mach_text_sections; \ \ diff --git a/gcc/config/psos.h b/gcc/config/psos.h index 23a41e1d132..1d3b2f88552 100644 --- a/gcc/config/psos.h +++ b/gcc/config/psos.h @@ -116,8 +116,6 @@ while (0) CTORS_SECTION_FUNCTION \ DTORS_SECTION_FUNCTION -extern void text_section (); - #define CTORS_SECTION_FUNCTION \ void \ ctors_section () \ diff --git a/gcc/config/ptx4.h b/gcc/config/ptx4.h index 3a6a572b324..5580ed96138 100644 --- a/gcc/config/ptx4.h +++ b/gcc/config/ptx4.h @@ -497,8 +497,6 @@ do { \ #define READONLY_DATA_SECTION() const_section () -extern void text_section (); - #define CONST_SECTION_FUNCTION \ void \ const_section () \ diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h index 3475561799b..a32a56b0894 100644 --- a/gcc/config/svr3.h +++ b/gcc/config/svr3.h @@ -288,7 +288,6 @@ fini_section () \ void \ const_section () \ { \ - extern void text_section(); \ if (!USE_CONST_SECTION) \ text_section(); \ else if (in_section != in_const) \ diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h index 3793b876589..b2d91185693 100644 --- a/gcc/config/svr4.h +++ b/gcc/config/svr4.h @@ -486,8 +486,6 @@ do { \ #define READONLY_DATA_SECTION() const_section () -extern void text_section PARAMS ((void)); - extern void const_section PARAMS ((void)); #define CONST_SECTION_FUNCTION \ void \ @@ -502,7 +500,6 @@ const_section () \ } \ } -extern void ctors_section PARAMS ((void)); #define CTORS_SECTION_FUNCTION \ void \ ctors_section () \ @@ -514,7 +511,6 @@ ctors_section () \ } \ } -extern void dtors_section PARAMS ((void)); #define DTORS_SECTION_FUNCTION \ void \ dtors_section () \ diff --git a/gcc/output.h b/gcc/output.h index d3fb02c33c8..aeba9fd95b2 100644 --- a/gcc/output.h +++ b/gcc/output.h @@ -159,6 +159,19 @@ extern int in_text_section PROTO((void)); extern void eh_frame_section PROTO ((void)); #endif +#ifdef CTORS_SECTION_ASM_OP +extern void ctors_section PARAMS ((void)); +#endif + +#ifdef DTORS_SECTION_ASM_OP +extern void dtors_section PARAMS ((void)); +#endif + +#ifdef BSS_SECTION_ASM_OP +extern void bss_section PARAMS ((void)); +#endif + + #ifdef TREE_CODE /* Tell assembler to change to section NAME for DECL. If DECL is NULL, just switch to section NAME. -- 2.11.0