diff options
author | Nick Clifton <nickc@cambridge.redhat.com> | 2001-04-26 15:37:02 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2001-04-26 15:37:02 +0000 |
commit | fdc2d3b0f976b17b61ec5d3b4df3a86693250982 (patch) | |
tree | f84d3425e2d5ff957813aba9a84db85136220a3b /gcc | |
parent | 5677efb0be578c0cb8b7df83700bed0de7cbf69f (diff) | |
download | gcc-fdc2d3b0f976b17b61ec5d3b4df3a86693250982.zip gcc-fdc2d3b0f976b17b61ec5d3b4df3a86693250982.tar.gz gcc-fdc2d3b0f976b17b61ec5d3b4df3a86693250982.tar.bz2 |
Define ASM_OUTPUT_MAX_SKIP_ALIGN if the assembler supports .p2align.
From-SVN: r41591
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/arm/arm.h | 15 |
2 files changed, 20 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f85328..6b62da1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-04-26 Nick Clifton <nickc@cambridge.redhat.com> + + * config/arm/arm.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define, if the + assembler supports .p2align. + 2001-04-26 Nathan Sidwell <nathan@codesourcery.com> * 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 4387193..a4c1b70 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 |