aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRobert Lipe <robertl@gcc.gnu.org>1998-10-15 09:52:29 +0000
committerRobert Lipe <robertl@gcc.gnu.org>1998-10-15 09:52:29 +0000
commit80fba193dd65d41044e3175d95e5a3b29d2ab353 (patch)
treee786fc1893df711154a506c239692bf09da07f1c /gcc
parent1862988072ea6ad28097385100bd54e22a682e00 (diff)
downloadgcc-80fba193dd65d41044e3175d95e5a3b29d2ab353.zip
gcc-80fba193dd65d41044e3175d95e5a3b29d2ab353.tar.gz
gcc-80fba193dd65d41044e3175d95e5a3b29d2ab353.tar.bz2
sco5.h (MAX_OFILE_ALIGNMENT): Define.
* config/i386/sco5.h (MAX_OFILE_ALIGNMENT): Define. (SELECT_SECTION): Resync with svr4.h. From-SVN: r23109
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/sco5.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/gcc/config/i386/sco5.h b/gcc/config/i386/sco5.h
index b97fffc..7510799 100644
--- a/gcc/config/i386/sco5.h
+++ b/gcc/config/i386/sco5.h
@@ -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