From 80fba193dd65d41044e3175d95e5a3b29d2ab353 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Thu, 15 Oct 1998 09:52:29 +0000 Subject: sco5.h (MAX_OFILE_ALIGNMENT): Define. * config/i386/sco5.h (MAX_OFILE_ALIGNMENT): Define. (SELECT_SECTION): Resync with svr4.h. From-SVN: r23109 --- gcc/config/i386/sco5.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'gcc') 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 -- cgit v1.1