This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] remove build warnings on m32r/initfini.c
- From: Doug Evans <dje at sebabeach dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Jun 2003 01:17:27 -0700 (PDT)
- Subject: [PATCH] remove build warnings on m32r/initfini.c
This patch removes some build warnings on m32r/initfini.c.
Already approved by Nick.
2003-06-11 Doug Evans <dje@sebabeach.org>
Remove some build warnings.
* config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): No longer
static.
(__do_global_ctors,__do_global_dtors): Ditto.
Index: config/m32r/initfini.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m32r/initfini.c,v
retrieving revision 1.5
diff -u -p -r1.5 initfini.c
--- config/m32r/initfini.c 15 May 2000 23:14:16 -0000 1.5
+++ config/m32r/initfini.c 12 Jun 2003 03:19:59 -0000
@@ -46,11 +46,11 @@ typedef void (*func_ptr) (void);
refer to only the __CTOR_END__ symbol in crtfini.o and the __DTOR_LIST__
symbol in crtinit.o, where they are defined. */
-static func_ptr __CTOR_LIST__[1]
+func_ptr __CTOR_LIST__[1]
__attribute__ ((section (".ctors")))
= { (func_ptr) (-1) };
-static func_ptr __DTOR_LIST__[1]
+func_ptr __DTOR_LIST__[1]
__attribute__ ((section (".dtors")))
= { (func_ptr) (-1) };
@@ -68,11 +68,11 @@ static func_ptr __DTOR_LIST__[1]
refers to one particular associated `__DTOR_LIST__' which belongs to the
same particular root executable or shared library file. */
-static void __do_global_dtors ()
+void __do_global_dtors (void)
asm ("__do_global_dtors") __attribute__ ((section (".text")));
-static void
-__do_global_dtors ()
+void
+__do_global_dtors (void)
{
func_ptr *p;
@@ -122,22 +122,22 @@ __fini:\n\
last, these words naturally end up at the very ends of the two lists
contained in these two sections. */
-static func_ptr __CTOR_END__[1]
+func_ptr __CTOR_END__[1]
__attribute__ ((section (".ctors")))
= { (func_ptr) 0 };
-static func_ptr __DTOR_END__[1]
+func_ptr __DTOR_END__[1]
__attribute__ ((section (".dtors")))
= { (func_ptr) 0 };
/* Run all global constructors for the program.
Note that they are run in reverse order. */
-static void __do_global_ctors ()
+void __do_global_ctors (void)
asm ("__do_global_ctors") __attribute__ ((section (".text")));
-static void
-__do_global_ctors ()
+void
+__do_global_ctors (void)
{
func_ptr *p;