This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PowerPC] Default TARGET_ALIGN_NATURAL properly for target libs.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Cc: David Edelsohn <dje at watson dot ibm dot com>
- Date: Fri, 9 Dec 2005 12:29:53 +1030
- Subject: [PowerPC] Default TARGET_ALIGN_NATURAL properly for target libs.
I noticed this when looking at PR25299. Since powerpc64-linux now
defaults to natural alignment, we ought to compile target libs like
that. Not that it really matters, because I don't think we have any
structs that start with a double. Still..
Bootstrap in progress. OK mainline?
* config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
Index: gcc/config/rs6000/linux64.h
===================================================================
--- gcc/config/rs6000/linux64.h (revision 108256)
+++ gcc/config/rs6000/linux64.h (working copy)
@@ -236,6 +239,12 @@ extern int dot_symbols;
? rs6000_special_round_type_align (STRUCT, COMPUTED, SPECIFIED) \
: MAX ((COMPUTED), (SPECIFIED)))
+/* Use the default for compiling target libs. */
+#ifdef IN_TARGET_LIBS
+#undef TARGET_ALIGN_NATURAL
+#define TARGET_ALIGN_NATURAL 1
+#endif
+
/* Indicate that jump tables go in the text section. */
#undef JUMP_TABLES_IN_TEXT_SECTION
#define JUMP_TABLES_IN_TEXT_SECTION TARGET_64BIT
--
Alan Modra
IBM OzLabs - Linux Technology Centre