OSDN Git Service

Use C fixincludes for UnixWare 7.
[pf3gnuchains/gcc-fork.git] / gcc / crtstuff.c
index 3783b5a..f51cf16 100644 (file)
@@ -1,7 +1,7 @@
 /* Specialized bits of code needed to support construction and
    destruction of file-scope objects in C++ code.
    Copyright (C) 1991, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000 Free Software Foundation, Inc.
+   1999, 2000, 2001 Free Software Foundation, Inc.
    Contributed by Ron Guilmette (rfg@monkeys.com).
 
 This file is part of GNU CC.
@@ -59,7 +59,6 @@ Boston, MA 02111-1307, USA.  */
 #include "tm.h"
 #include "tsystem.h"
 
-#include "defaults.h"
 #include "frame.h"
 
 #ifndef CRT_CALL_STATIC_FUNCTION
@@ -110,7 +109,10 @@ extern void *__deregister_frame_info (void *)
    an additional check that you are doing everything right.  But if you do
    use the `-z text' option when building a shared library, you will get
    errors unless the .ctors and .dtors sections are marked as writable
-   via the SHF_WRITE attribute.)  */
+   via the SHF_WRITE attribute.)
+
+   These defaults do not include leading spacing, as they will only be
+   used in asm:s here.  */
 
 #ifndef CTORS_SECTION_ASM_OP
 #define CTORS_SECTION_ASM_OP   ".section\t.ctors,\"aw\""
@@ -341,7 +343,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__,
@@ -492,7 +494,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
@@ -583,7 +585,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);