This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] fix -falign* for frv
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 06 Nov 2003 10:59:15 +0000
- Subject: [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. */