aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sparc/sol2.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-11-20 22:01:48 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-11-20 22:01:48 +0000
commit233db724fac81bccf711c461f74adf9eaaa95a9c (patch)
tree4d44974d8442f69dfeaa736694f572d742d99fcd /gcc/config/sparc/sol2.h
parent430c6cebe1f5acbbc209c12717cfe085c759f73e (diff)
downloadgcc-233db724fac81bccf711c461f74adf9eaaa95a9c.zip
gcc-233db724fac81bccf711c461f74adf9eaaa95a9c.tar.gz
gcc-233db724fac81bccf711c461f74adf9eaaa95a9c.tar.bz2
re PR target/31100 (ASM_OUTPUT_ALIGN_WITH_NOP wrong with GNU as)
PR target/31100 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to... * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here. * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine. From-SVN: r166986
Diffstat (limited to 'gcc/config/sparc/sol2.h')
-rw-r--r--gcc/config/sparc/sol2.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/sparc/sol2.h b/gcc/config/sparc/sol2.h
index 26c9ac7..1128662 100644
--- a/gcc/config/sparc/sol2.h
+++ b/gcc/config/sparc/sol2.h
@@ -177,6 +177,13 @@ along with GCC; see the file COPYING3. If not see
} \
while (0)
+/* This is how to output an assembler line that says to advance
+ the location counter to a multiple of 2**LOG bytes using the
+ NOP instruction as padding. */
+#define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG) \
+ if ((LOG) != 0) \
+ fprintf (FILE, "\t.align %d,0x1000000\n", (1<<(LOG)))
+
/* Use Solaris ELF section syntax. */
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION sparc_solaris_elf_asm_named_section