This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] fix -falign* for frv


This patch fixes -falign* for frv.  Before the patch, we would pad with
zeros, which are packed nops.  We should be using unpacked nops instead.

Tested on frv-elf, installed as obvious.

Richard


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

Index: config/frv/frv.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.h,v
retrieving revision 1.30
diff -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.30 frv.h
--- config/frv/frv.h	14 Oct 2003 08:39:24 -0000	1.30
+++ config/frv/frv.h	6 Nov 2003 10:51:03 -0000
@@ -2970,6 +2970,9 @@ #define ASM_OUTPUT_SKIP(STREAM, NBYTES) 
 #define ASM_OUTPUT_ALIGN(STREAM, POWER) \
   fprintf ((STREAM), "\t.p2align %d\n", (POWER))
 
+/* Inside the text section, align with unpacked nops rather than zeros.  */
+#define ASM_OUTPUT_ALIGN_WITH_NOP(STREAM, POWER) \
+  fprintf ((STREAM), "\t.p2alignl %d,0x80880000\n", (POWER))
 
 /* Macros Affecting all Debug Formats.  */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]