sco5.h (MAX_OFILE_ALIGNMENT): Define.
authorRobert Lipe <robertl@gcc.gnu.org>
Thu, 15 Oct 1998 09:52:29 +0000 (09:52 +0000)
committerRobert Lipe <robertl@gcc.gnu.org>
Thu, 15 Oct 1998 09:52:29 +0000 (09:52 +0000)
       * config/i386/sco5.h (MAX_OFILE_ALIGNMENT):  Define.
       (SELECT_SECTION): Resync with svr4.h.

From-SVN: r23109

gcc/config/i386/sco5.h

index b97fffc73ffcf1a3eb7e4c24923bd73422323224..7510799b16d2404d496f46f96d26c2d6aef9354c 100644 (file)
@@ -689,7 +689,9 @@ dtors_section ()                                                    \
 #undef SELECT_SECTION
 #define SELECT_SECTION(DECL,RELOC)                                     \
 {                                                                      \
-  if (TREE_CODE (DECL) == STRING_CST)                                  \
+  if (TARGET_ELF && flag_pic && RELOC)                                 \
+     data_section ();                                                  \
+  else if (TREE_CODE (DECL) == STRING_CST)                             \
     {                                                                  \
       if (! flag_writable_strings)                                     \
        const_section ();                                               \
@@ -698,11 +700,7 @@ dtors_section ()                                                   \
     }                                                                  \
   else if (TREE_CODE (DECL) == VAR_DECL)                               \
     {                                                                  \
-      if ((TARGET_ELF && flag_pic && RELOC)                            \
-         || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL)          \
-         || !DECL_INITIAL (DECL)                                       \
-         || (DECL_INITIAL (DECL) != error_mark_node                    \
-             && !TREE_CONSTANT (DECL_INITIAL (DECL))))                 \
+      if (! DECL_READONLY_SECTION (DECL, RELOC))                       \
        data_section ();                                                \
       else                                                             \
        const_section ();                                               \
@@ -921,6 +919,13 @@ dtors_section ()                                                   \
 
 #define TARGET_MEM_FUNCTIONS
 
+/* Biggest alignment supported by the object file format of this
+   machine.  Use this macro to limit the alignment which can be
+   specified using the `__attribute__ ((aligned (N)))' construct.  If
+   not defined, the default value is `BIGGEST_ALIGNMENT'.  */
+
+#define MAX_OFILE_ALIGNMENT (32768*8)
+
 /*
 Here comes some major hackery to get the crt stuff to compile properly.
 Since we can (and do) compile for both COFF and ELF environments, we