diff options
author | Doug Evans <dje@sebabeach.org> | 2003-06-13 05:33:38 +0000 |
---|---|---|
committer | Doug Evans <devans@gcc.gnu.org> | 2003-06-13 05:33:38 +0000 |
commit | 2ac29877a520a877d4674320fcc487190b8b4cfa (patch) | |
tree | aa80bde58d75bcf47c5a9beb0d452166ba2480c4 /gcc/config/m32r | |
parent | c63f3a3443ab52525a0e189119b8a8f3cc51115f (diff) | |
download | gcc-2ac29877a520a877d4674320fcc487190b8b4cfa.zip gcc-2ac29877a520a877d4674320fcc487190b8b4cfa.tar.gz gcc-2ac29877a520a877d4674320fcc487190b8b4cfa.tar.bz2 |
Remove some build warnings.
* config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): No longer
static.
(__do_global_ctors,__do_global_dtors): Ditto.
From-SVN: r67880
Diffstat (limited to 'gcc/config/m32r')
-rw-r--r-- | gcc/config/m32r/initfini.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/config/m32r/initfini.c b/gcc/config/m32r/initfini.c index 066a675..8ae3085 100644 --- a/gcc/config/m32r/initfini.c +++ b/gcc/config/m32r/initfini.c @@ -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; |