aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorOleg Raikhman <oleg@adapteva.com>2012-11-28 13:56:28 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2012-11-28 13:56:28 +0000
commit3000ffecd7fbbbf9175fcfe88e3d236c6454ae68 (patch)
treebdece186dca2829dfc2bbf01ca836c90c9db60c1 /gcc/config
parentbe74e49e0db90b4e87fde8c20df95bbae97bedca (diff)
downloadgcc-3000ffecd7fbbbf9175fcfe88e3d236c6454ae68.zip
gcc-3000ffecd7fbbbf9175fcfe88e3d236c6454ae68.tar.gz
gcc-3000ffecd7fbbbf9175fcfe88e3d236c6454ae68.tar.bz2
epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
2012-11-28 Oleg Raikhman <oleg@adapteva.com> * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define. From-SVN: r193892
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/epiphany/epiphany.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/epiphany/epiphany.h b/gcc/config/epiphany/epiphany.h
index 07d0909..26a908a 100644
--- a/gcc/config/epiphany/epiphany.h
+++ b/gcc/config/epiphany/epiphany.h
@@ -780,9 +780,16 @@ do { \
/* This is how to output an assembler line
that says to advance the location counter
to a multiple of 2**LOG bytes. */
-#define ASM_OUTPUT_ALIGN(FILE,LOG) \
+#define ASM_OUTPUT_ALIGN(FILE, LOG) \
do { if ((LOG) != 0) fprintf (FILE, "\t.balign %d\n", 1 << (LOG)); } while (0)
+/* Inside the text section, align with nops rather than zeros. */
+#define ASM_OUTPUT_ALIGN_WITH_NOP(FILE, LOG) \
+do \
+{ \
+ if ((LOG) != 0) fprintf (FILE, "\t.balignw %d,0x01a2\n", 1 << (LOG)); \
+} while (0)
+
/* This is how to declare the size of a function. */
#undef ASM_DECLARE_FUNCTION_SIZE
#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) \