diff options
| author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-26 15:37:02 +0000 |
|---|---|---|
| committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-26 15:37:02 +0000 |
| commit | 57cace95217f6aec49b1ef1304e27c6ae4f94bbc (patch) | |
| tree | f84d3425e2d5ff957813aba9a84db85136220a3b | |
| parent | b70378579cf597fcad467b75c9a9ca0996bfd7f4 (diff) | |
| download | ppe42-gcc-57cace95217f6aec49b1ef1304e27c6ae4f94bbc.tar.gz ppe42-gcc-57cace95217f6aec49b1ef1304e27c6ae4f94bbc.zip | |
Define ASM_OUTPUT_MAX_SKIP_ALIGN if the assembler supports .p2align.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41591 138bc75d-0d04-0410-961f-82ee72b054a4
| -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 9f8532837b9..6b62da11a13 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 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 |

