From fdc2d3b0f976b17b61ec5d3b4df3a86693250982 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 26 Apr 2001 15:37:02 +0000 Subject: [PATCH] Define ASM_OUTPUT_MAX_SKIP_ALIGN if the assembler supports .p2align. From-SVN: r41591 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.h | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f8532837b9..6b62da11a13 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-04-26 Nick Clifton + + * config/arm/arm.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define, if the + assembler supports .p2align. + 2001-04-26 Nathan Sidwell * c-lex.c (c_lex): Remove # from %o diagnostic formatting. diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 438719385fe..a4c1b70cbc4 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -2704,6 +2704,21 @@ extern int making_const_table; } \ while (0) +#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN +/* To support -falign-* switches we need to use .p2align so + that alignment directives in code sections will be padded + with no-op instructions, rather than zeroes. */ +#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 + /* Target characters. */ #define TARGET_BELL 007 #define TARGET_BS 010 -- 2.30.2