Commit 80fba193 by Robert Lipe

sco5.h (MAX_OFILE_ALIGNMENT): Define.

       * config/i386/sco5.h (MAX_OFILE_ALIGNMENT):  Define.
       (SELECT_SECTION): Resync with svr4.h.

From-SVN: r23109
parent 18629880
...@@ -689,7 +689,9 @@ dtors_section () \ ...@@ -689,7 +689,9 @@ dtors_section () \
#undef SELECT_SECTION #undef SELECT_SECTION
#define SELECT_SECTION(DECL,RELOC) \ #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) \ if (! flag_writable_strings) \
const_section (); \ const_section (); \
...@@ -698,11 +700,7 @@ dtors_section () \ ...@@ -698,11 +700,7 @@ dtors_section () \
} \ } \
else if (TREE_CODE (DECL) == VAR_DECL) \ else if (TREE_CODE (DECL) == VAR_DECL) \
{ \ { \
if ((TARGET_ELF && flag_pic && RELOC) \ if (! DECL_READONLY_SECTION (DECL, RELOC)) \
|| !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
|| !DECL_INITIAL (DECL) \
|| (DECL_INITIAL (DECL) != error_mark_node \
&& !TREE_CONSTANT (DECL_INITIAL (DECL)))) \
data_section (); \ data_section (); \
else \ else \
const_section (); \ const_section (); \
...@@ -921,6 +919,13 @@ dtors_section () \ ...@@ -921,6 +919,13 @@ dtors_section () \
#define TARGET_MEM_FUNCTIONS #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. 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 Since we can (and do) compile for both COFF and ELF environments, we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment