This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch to create sparc-protos.h


 > From: Richard Henderson <rth@cygnus.com>
 > 
 > On Thu, Oct 21, 1999 at 01:30:42PM -0400, Kaveh R. Ghazi wrote:
 > >  > #ifdef CTORS_SECTION_FUNCTION
 > >  > extern void ctors_section PARAMS ((void));
 > >  > #endif
 > > 
 > > Are there any cases where the signature would not be:
 > > "extern void (*)(void)" ?
 > 
 > Not that I can think of.
 > r~

	Okay, I checked in the following.  
		--Kaveh


Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.4771
diff -u -p -r1.4771 ChangeLog
--- ChangeLog	1999/10/24 19:23:11	1.4771
+++ ChangeLog	1999/10/24 19:36:52
@@ -1,3 +1,24 @@
+Sun Oct 24 15:35:43 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* 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  <ghazi@caip.rutgers.edu>
 
 	* final.c (peephole): Delete prototype.
Index: output.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/output.h,v
retrieving revision 1.33
diff -u -p -r1.33 output.h
--- output.h	1999/10/24 19:23:11	1.33
+++ output.h	1999/10/24 19:36:52
@@ -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.
Index: config/alpha/alpha-interix.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/alpha/alpha-interix.h,v
retrieving revision 1.3
diff -u -p -r1.3 alpha-interix.h
--- alpha-interix.h	1999/09/16 23:48:09	1.3
+++ alpha-interix.h	1999/10/24 19:36:52
@@ -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 ()							\
Index: config/alpha/elf.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/alpha/elf.h,v
retrieving revision 1.18
diff -u -p -r1.18 elf.h
--- elf.h	1999/09/23 12:36:06	1.18
+++ elf.h	1999/10/24 19:36:53
@@ -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								\
Index: config/arm/linux-elf.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/arm/linux-elf.h,v
retrieving revision 1.11
diff -u -p -r1.11 linux-elf.h
--- linux-elf.h	1999/09/15 21:41:13	1.11
+++ linux-elf.h	1999/10/24 19:36:53
@@ -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						\
Index: config/arm/linux-telf.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/arm/linux-telf.h,v
retrieving revision 1.3
diff -u -p -r1.3 linux-telf.h
--- linux-telf.h	1999/09/15 21:41:13	1.3
+++ linux-telf.h	1999/10/24 19:36:53
@@ -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						\
Index: config/c4x/c4x.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/c4x/c4x.h,v
retrieving revision 1.32
diff -u -p -r1.32 c4x.h
--- c4x.h	1999/10/15 04:42:15	1.32
+++ c4x.h	1999/10/24 19:36:55
@@ -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)					\
Index: config/dsp16xx/dsp16xx.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/dsp16xx/dsp16xx.h,v
retrieving revision 1.13
diff -u -p -r1.13 dsp16xx.h
--- dsp16xx.h	1999/08/02 23:19:25	1.13
+++ dsp16xx.h	1999/10/24 19:36:57
@@ -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 ();
Index: config/elfos.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/elfos.h,v
retrieving revision 1.8
diff -u -p -r1.8 elfos.h
--- elfos.h	1999/09/15 21:41:12	1.8
+++ elfos.h	1999/10/24 19:36:57
@@ -280,8 +280,6 @@ do {									\
 
 #define READONLY_DATA_SECTION() const_section ()
 
-extern void text_section ();
-
 #define CONST_SECTION_FUNCTION						\
 void									\
 const_section ()							\
Index: config/nextstep.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/nextstep.h,v
retrieving revision 1.7
diff -u -p -r1.7 nextstep.h
--- nextstep.h	1999/09/15 21:41:13	1.7
+++ nextstep.h	1999/10/24 19:36:57
@@ -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;				\
   									\
Index: config/psos.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/psos.h,v
retrieving revision 1.3
diff -u -p -r1.3 psos.h
--- psos.h	1999/09/15 21:41:13	1.3
+++ psos.h	1999/10/24 19:36:57
@@ -116,8 +116,6 @@ while (0)
   CTORS_SECTION_FUNCTION						\
   DTORS_SECTION_FUNCTION
 
-extern void text_section ();
-
 #define CTORS_SECTION_FUNCTION						\
 void									\
 ctors_section ()							\
Index: config/ptx4.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/ptx4.h,v
retrieving revision 1.7
diff -u -p -r1.7 ptx4.h
--- ptx4.h	1999/09/15 21:41:13	1.7
+++ ptx4.h	1999/10/24 19:36:57
@@ -497,8 +497,6 @@ do {									\
 
 #define READONLY_DATA_SECTION() const_section ()
 
-extern void text_section ();
-
 #define CONST_SECTION_FUNCTION						\
 void									\
 const_section ()							\
Index: config/svr3.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/svr3.h,v
retrieving revision 1.2
diff -u -p -r1.2 svr3.h
--- svr3.h	1998/12/16 21:00:04	1.2
+++ svr3.h	1999/10/24 19:36:58
@@ -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)					\
Index: config/svr4.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/svr4.h,v
retrieving revision 1.17
diff -u -p -r1.17 svr4.h
--- svr4.h	1999/10/21 16:58:33	1.17
+++ svr4.h	1999/10/24 19:36:59
@@ -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 ()							\
Index: config/i386/aix386ng.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/aix386ng.h,v
retrieving revision 1.6
diff -u -p -r1.6 aix386ng.h
--- aix386ng.h	1999/01/20 00:41:30	1.6
+++ aix386ng.h	1999/10/24 19:36:59
@@ -124,7 +124,6 @@ Boston, MA 02111-1307, USA.  */
 void									\
 const_section ()							\
 {									\
-  extern void text_section();						\
   text_section();							\
 }
 
Index: config/i386/i386-interix.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386-interix.h,v
retrieving revision 1.4
diff -u -p -r1.4 i386-interix.h
--- i386-interix.h	1999/09/15 21:41:14	1.4
+++ i386-interix.h	1999/10/24 19:36:59
@@ -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 ()							\
Index: config/i386/sco5.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/sco5.h,v
retrieving revision 1.29
diff -u -p -r1.29 sco5.h
--- sco5.h	1999/09/26 21:43:48	1.29
+++ sco5.h	1999/10/24 19:37:00
@@ -590,7 +590,6 @@ do {									\
 void									\
 const_section ()							\
 {									\
-  extern void text_section();						\
   if (!USE_CONST_SECTION)						\
     text_section();							\
   else if (in_section != in_const)					\
Index: config/i386/svr3gas.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/svr3gas.h,v
retrieving revision 1.2
diff -u -p -r1.2 svr3gas.h
--- svr3gas.h	1998/12/16 21:04:19	1.2
+++ svr3gas.h	1999/10/24 19:37:00
@@ -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)					\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]