elf.h (CTOR_LIST_BEGIN, [...]): change type of __CTOR_LIST__ from func_ptr array...
authorChris Demetriou <cgd@sibyte.com>
Sun, 6 Aug 2000 00:07:22 +0000 (00:07 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 6 Aug 2000 00:07:22 +0000 (18:07 -0600)
        * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
        DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
        __CTOR_LIST__ from func_ptr array to just func_ptr, to
        avoid extra alignment imposed on arrays.
        * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
        DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.

From-SVN: r35510

gcc/ChangeLog
gcc/config/mips/elf.h
gcc/config/mips/elf64.h

index 15a145ab3973ce98be430126105733d78b8a0c1b..e4d96f933c91f2812362ed7949dbe1118f2141fd 100644 (file)
@@ -1,5 +1,12 @@
 2000-08-05  Chris Demetriou  <cgd@sibyte.com>
 
+       * mips/elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
+       DTOR_LIST_BEGIN, DTOR_LIST_END): change type of
+       __CTOR_LIST__ from func_ptr array to just func_ptr, to
+       avoid extra alignment imposed on arrays.
+       * mips/elf64.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
+       DTOR_LIST_BEGIN, DTOR_LIST_END): Likewise.
+
        * mips.h: Clean up comments and spacing near MASKs.
        (TARGET_UNIX_ASM): Delete.
        (MASK_MIPS16, MASK_NO_CHECK_ZERO_DIV, MASK_CHECK_RANGE_DIV,
index 5a723ed70cf464d87f8498044206adeb5cb30a5c..561735540c6578cd9300862385fd431d3f1c79c0 100644 (file)
@@ -347,19 +347,19 @@ void FN ()                                                            \
 
 #define CTOR_LIST_BEGIN                                 \
 asm (CTORS_SECTION_ASM_OP);                             \
-func_ptr __CTOR_LIST__[1] = { (func_ptr) (-1) }
+func_ptr __CTOR_LIST__ = (func_ptr) (-1)
  
 #define CTOR_LIST_END                                   \
 asm (CTORS_SECTION_ASM_OP);                             \
-func_ptr __CTOR_END__[1] = { (func_ptr) 0 };
+func_ptr __CTOR_END__ = (func_ptr) 0
  
 #define DTOR_LIST_BEGIN                                 \
 asm (DTORS_SECTION_ASM_OP);                             \
-func_ptr __DTOR_LIST__[1] = { (func_ptr) (-1) }
+func_ptr __DTOR_LIST__ = (func_ptr) (-1)
 
 #define DTOR_LIST_END                                   \
 asm (DTORS_SECTION_ASM_OP);                             \
-func_ptr __DTOR_END__[1] = { (func_ptr) 0 };
+func_ptr __DTOR_END__ = (func_ptr) 0
 
 /* Don't set the target flags, this is done by the linker script */
 #undef LIB_SPEC
index 03a5dbab20242a7fc5ef0c51d1e417daddb118e8..882975844cc0381242a335aa0899e815424c8715 100644 (file)
@@ -327,19 +327,19 @@ void FN ()                                                            \
 
 #define CTOR_LIST_BEGIN                                 \
 asm (CTORS_SECTION_ASM_OP);                             \
-func_ptr __CTOR_LIST__[1] = { (func_ptr) (-1) }
+func_ptr __CTOR_LIST__ = (func_ptr) (-1)
  
 #define CTOR_LIST_END                                   \
 asm (CTORS_SECTION_ASM_OP);                             \
-func_ptr __CTOR_END__[1] = { (func_ptr) 0 };
+func_ptr __CTOR_END__ = (func_ptr) 0
  
 #define DTOR_LIST_BEGIN                                 \
 asm (DTORS_SECTION_ASM_OP);                             \
-func_ptr __DTOR_LIST__[1] = { (func_ptr) (-1) }
+func_ptr __DTOR_LIST__ = (func_ptr) (-1)
 
 #define DTOR_LIST_END                                   \
 asm (DTORS_SECTION_ASM_OP);                             \
-func_ptr __DTOR_END__[1] = { (func_ptr) 0 };
+func_ptr __DTOR_END__ = (func_ptr) 0
 
 /* Don't set the target flags, this is done by the linker script */
 #undef LIB_SPEC