aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2002-10-31 19:40:12 +0000
committerDale Johannesen <dalej@gcc.gnu.org>2002-10-31 19:40:12 +0000
commite381c27adc3a1648888d7ef5fc33f4529cbede15 (patch)
treef270f5d4b27161a88844107599a3e212355a2e5f
parent3b5b4904ec790d4312b124f9e4e46b92a2458875 (diff)
downloadgcc-e381c27adc3a1648888d7ef5fc33f4529cbede15.zip
gcc-e381c27adc3a1648888d7ef5fc33f4529cbede15.tar.gz
gcc-e381c27adc3a1648888d7ef5fc33f4529cbede15.tar.bz2
enable -falign-xxx flags
From-SVN: r58690
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/darwin.h13
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 03c3499..6a99d0d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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,
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 6bfc07c..4cee760 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -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)