enable -falign-xxx flags
authorDale Johannesen <dalej@apple.com>
Thu, 31 Oct 2002 19:40:12 +0000 (19:40 +0000)
committerDale Johannesen <dalej@gcc.gnu.org>
Thu, 31 Oct 2002 19:40:12 +0000 (19:40 +0000)
From-SVN: r58690

gcc/ChangeLog
gcc/config/rs6000/darwin.h

index 03c3499a6485399ce35f71271de35637e1a1bbb6..6a99d0d5f3c2aa0e7be1d3754598ebdd81d3b62d 100644 (file)
@@ -1,3 +1,7 @@
+Thu Oct 31  Dale Johannesen  <dalej@apple.com>
+
+       * config/rs6000/darwin.h:  Enable -falign-xxx options.
+
 Thu Oct 31 18:08:00 CET 2002  Jan Hubicka  <jh@suse.cz>
 
        * i386.c (override_options): Set defaults for flag_omit_frame_pointer,
index 6bfc07ca981cfbdf8a1ff383042ae4ea5a724973..4cee76030909443106ceccec50f8690ec59760d7 100644 (file)
@@ -136,6 +136,19 @@ Boston, MA 02111-1307, USA.  */
 #define        RESTORE_FP_PREFIX "._restf"
 #define RESTORE_FP_SUFFIX ""
 
+/* This is how to output an assembler line that says to advance
+   the location counter to a multiple of 2**LOG bytes using the
+   "nop" instruction as padding.  */
+
+#define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG)                    \
+  do {                                                         \
+    if ((LOG) < 3) {                                           \
+      ASM_OUTPUT_ALIGN (FILE,LOG);                             \
+    }                                                          \
+    else /* nop == ori r0,r0,0 */                              \
+      fprintf (FILE, "\t.align32 %d,0x60000000\n", (LOG));     \
+  } while (0);
+
 /* Generate insns to call the profiler.  */
 
 #define PROFILE_HOOK(LABEL)   output_profile_hook (LABEL)