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 sh-wrs-vxworks build


(Posting these patches slightly out of order, sorry)

Kaz recently changed the assembler so that it raises an error rather
a warning for unaligned PC-relative accesses.  This patch is another
example of why that was such a good idea -- it caught a hitherto-
undetected instance of unaligned data for VxWorks PIC in lib1funcs.asm.
I've installed the patch below as obvious after testing on sh-wrs-vxworks.

Richard


gcc/
	* config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.

Index: gcc/config/sh/lib1funcs.asm
===================================================================
--- gcc/config/sh/lib1funcs.asm	(revision 126156)
+++ gcc/config/sh/lib1funcs.asm	(working copy)
@@ -2125,6 +2125,7 @@ GLOBAL(ic_invalidate):
 	add	r1,r0
 	jmp	@r0
 	mov.l	@(4,r1),r0
+	.align	2
 #ifndef __pic__
 0:	.long   GLOBAL(ic_invalidate_array)
 #else /* __pic__ */


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