* config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
authorDevang Patel <dpatel@apple.com>
Mon, 25 Apr 2005 02:10:41 +0000 (19:10 -0700)
committerDevang Patel <dpatel@gcc.gnu.org>
Mon, 25 Apr 2005 02:10:41 +0000 (19:10 -0700)
From-SVN: r98694

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

index 3a776bc68d6c79ebe3923f9e2c639bb8f5f01c0b..b13087c329e68664e0846b512601ec19302d1018 100644 (file)
@@ -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
index 46306746bba5ff84a9e4117ec14972d5fb2698cb..d80d66702c1ae869e8bd4b417470a85a015578f7 100644 (file)
@@ -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.  */