epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
authorOleg Raikhman <oleg@adapteva.com>
Wed, 28 Nov 2012 13:56:28 +0000 (13:56 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Wed, 28 Nov 2012 13:56:28 +0000 (13:56 +0000)
2012-11-28  Oleg Raikhman  <oleg@adapteva.com>

        * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.

From-SVN: r193892

gcc/ChangeLog
gcc/config/epiphany/epiphany.h

index 5d503fd1520dc87c3321c6ecc5c6897239b1212e..aa88b76838cc941d72e7c78a1237a30229caaa50 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-28  Oleg Raikhman  <oleg@adapteva.com>
+
+       * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
+
 2012-11-28  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define.
index 07d0909c96da97927fd2c74e64101538b890afab..26a908a67ce295690bf3b572e8d6a1945f72c363 100644 (file)
@@ -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)                   \