From 3000ffecd7fbbbf9175fcfe88e3d236c6454ae68 Mon Sep 17 00:00:00 2001 From: Oleg Raikhman Date: Wed, 28 Nov 2012 13:56:28 +0000 Subject: [PATCH] epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define. 2012-11-28 Oleg Raikhman * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define. From-SVN: r193892 --- gcc/ChangeLog | 4 ++++ gcc/config/epiphany/epiphany.h | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d503fd1520..aa88b76838c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-11-28 Oleg Raikhman + + * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define. + 2012-11-28 Joern Rennecke * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define. diff --git a/gcc/config/epiphany/epiphany.h b/gcc/config/epiphany/epiphany.h index 07d0909c96d..26a908a67ce 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) \ -- 2.30.2