diff options
author | Richard Henderson <rth@redhat.com> | 2000-11-20 01:48:49 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2000-11-20 01:48:49 +0000 |
commit | 8984ff7b9362f669d3175602bb3d8ba81215ca26 (patch) | |
tree | 9114017673ee46bc9f27a88d2903f91b7e83cf4e /gcc/crtstuff.c | |
parent | 2bc1ff0a8d3c4452e5e520c05efd0c2d782f1c20 (diff) |
* crtstuff.c (force_to_data): Use array size 1 not 0.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@37579 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r-- | gcc/crtstuff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index d5f23cbaf3f..2a5864dca71 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -344,7 +344,7 @@ __frame_dummy (void) #endif /* defined(INIT_SECTION_ASM_OP) */ /* Force cc1 to switch to .data section. */ -static func_ptr force_to_data[0] __attribute__ ((__unused__)) = { }; +static func_ptr force_to_data[1] __attribute__ ((__unused__)) = { }; /* NOTE: In order to be able to support SVR4 shared libraries, we arrange to have one set of symbols { __CTOR_LIST__, __DTOR_LIST__, __CTOR_END__, @@ -495,7 +495,7 @@ __do_global_ctors (void) #endif /* defined(INIT_SECTION_ASM_OP) */ /* Force cc1 to switch to .data section. */ -static func_ptr force_to_data[0] __attribute__ ((__unused__)) = { }; +static func_ptr force_to_data[1] __attribute__ ((__unused__)) = { }; /* Put a word containing zero at the end of each of our two lists of function addresses. Note that the words defined here go into the .ctors and .dtors @@ -586,7 +586,7 @@ __dereg_frame_dtor (void) /* Terminate the frame section with a final zero. */ /* Force cc1 to switch to .data section. */ -static void * force_to_data[0] __attribute__ ((__unused__)) = { }; +static void * force_to_data[1] __attribute__ ((__unused__)) = { }; typedef unsigned int ui32 __attribute__ ((mode (SI))); asm (EH_FRAME_SECTION_ASM_OP); |