diff options
author | Richard Henderson <rth@redhat.com> | 2000-11-19 17:48:49 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-11-19 17:48:49 -0800 |
commit | 52403abb36ac120728b86606945455ee87939bc2 (patch) | |
tree | 9114017673ee46bc9f27a88d2903f91b7e83cf4e | |
parent | 3df188844eefbdf39417e026cd3b763282801878 (diff) | |
download | gcc-52403abb36ac120728b86606945455ee87939bc2.zip gcc-52403abb36ac120728b86606945455ee87939bc2.tar.gz gcc-52403abb36ac120728b86606945455ee87939bc2.tar.bz2 |
* crtstuff.c (force_to_data): Use array size 1 not 0.
From-SVN: r37579
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/crtstuff.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 13a4ba8..958880d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2000-11-19 Richard Henderson <rth@redhat.com> + * crtstuff.c (force_to_data): Use array size 1 not 0. + * dwarf2out.c (simple_type_size_in_bits): Handle a type with no computed size as size zero. (field_byte_offset): Likewise. diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index d5f23cb..2a5864d 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); |