This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
sco5.h partial resync with svr4
- To: egcs-patches at cygnus dot com
- Subject: sco5.h partial resync with svr4
- From: Robert Lipe <robertl at dgii dot com>
- Date: Thu, 15 Oct 1998 11:53:59 -0500
I just committed the following patch. It causes no regressions,
but it also causes no progression. It does, however, simplify
the file somewhat and makes it more ../svr4.h-ish.
* config/i386/sco5.h (MAX_OFILE_ALIGNMENT): Define.
(SELECT_SECTION): Resync with svr4.h.
Index: sco5.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/i386/sco5.h,v
retrieving revision 1.19
diff -u -p -r1.19 sco5.h
--- sco5.h 1998/09/19 22:25:53 1.19
+++ sco5.h 1998/10/15 16:48:20
@@ -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 (); \
@@ -920,6 +918,13 @@ dtors_section () \
faster on OpenServer libraries. */
#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.