aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2005-04-24 19:10:41 -0700
committerDevang Patel <dpatel@gcc.gnu.org>2005-04-24 19:10:41 -0700
commiteb1093d3721a1435bf078b2356d9a707d1a4752e (patch)
treec30767dfb2e7a5341d52a12b4cb024d8ba247f7b /gcc
parentbbcfd969e6b35f9c4cad296f6c5e68f33a2ae0ba (diff)
downloadgcc-eb1093d3721a1435bf078b2356d9a707d1a4752e.zip
gcc-eb1093d3721a1435bf078b2356d9a707d1a4752e.tar.gz
gcc-eb1093d3721a1435bf078b2356d9a707d1a4752e.tar.bz2
* config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
From-SVN: r98694
Diffstat (limited to 'gcc')
-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 3a776bc..b13087c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-24 Devang Patel <dpatel@apple.com>
+
+ * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
+
2005-04-24 Ian Lance Taylor <ian@airs.com>
* c-semantics.c (build_stmt): Remove test of specific tree codes
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 4630674..d80d667 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -283,6 +283,19 @@ do { \
/* Generate insns to call the profiler. */
+#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
+/* This is supported in cctools 465 and later. The macro test
+ above prevents using it in earlier build environments. */
+#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
+ if ((LOG) != 0) \
+ { \
+ if ((MAX_SKIP) == 0) \
+ fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
+ else \
+ fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
+ }
+#endif
+
#define PROFILE_HOOK(LABEL) output_profile_hook (LABEL)
/* Function name to call to do profiling. */