summaryrefslogtreecommitdiff
path: root/gcc/config/mips/elf64.h
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-06 00:07:22 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-06 00:07:22 +0000
commit40eda1f2c3c9f227bf14d6ec9a41478fc5f16e13 (patch)
tree2b70b12781a0fb40ae1222252bc8548ef63afbdd /gcc/config/mips/elf64.h
parent57bd701fff6ca4d0f7fea012395f1d2396786d9f (diff)
downloadgcc-40eda1f2c3c9f227bf14d6ec9a41478fc5f16e13.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35510 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/elf64.h')
-rw-r--r--gcc/config/mips/elf64.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/mips/elf64.h b/gcc/config/mips/elf64.h
index 03a5dbab202..882975844cc 100644
--- a/gcc/config/mips/elf64.h
+++ b/gcc/config/mips/elf64.h
@@ -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