]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/config/i386/gas.h
acconfig.h (HAVE_GAS_MAX_SKIP_P2ALIGN): New tag.
[gcc.git] / gcc / config / i386 / gas.h
index 50976cf8bec5cdb04b3c792cda6ae04f4cbd2453..2da338a6518fe4baeb7ceafb0868e27441014081 100644 (file)
@@ -85,6 +85,19 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
   if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG))
 #endif
+
+/* A C statement to output to the stdio stream FILE an assembler
+   command to advance the location counter to a multiple of 1<<LOG
+   bytes if it is within MAX_SKIP bytes.
+
+   This is used to align code labels according to Intel recommendations.  */
+
+#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
+#  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
 \f
 /* A C statement or statements which output an assembler instruction
    opcode to the stdio stream STREAM.  The macro-operand PTR is a
This page took 0.030454 seconds and 5 git commands to generate.