This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Set STRICT_ALIGNMENT even for v850e
- To: gcc-patches at gcc dot gnu dot org
- Subject: Set STRICT_ALIGNMENT even for v850e
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 24 Apr 2001 09:55:54 +0100
Hi Guys,
I am applying the patch below to set STRICT_ALIGNMENT for the v850
port, even if the target processor is the v850e. Further reading of
the v850e technical specs has revealed that it too does require
strict alignment.
Cheers
Nick
2001-04-24 Nick Clifton <nickc@cambridge.redhat.com>
* config/v850/v850.h (STRICT_ALIGNMENT): Always set, even for
v850e.
Index: config/v850/v850.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/v850/v850.h,v
retrieving revision 1.33
diff -p -r1.33 v850.h
*** v850.h 2001/01/09 03:10:12 1.33
--- v850.h 2001/04/24 07:56:44
*************** extern struct small_memory_info small_me
*** 298,306 ****
/* Define this if move instructions will actually fail to work
when given unaligned data. */
! #ifndef STRICT_ALIGNMENT
! #define STRICT_ALIGNMENT TARGET_V850
! #endif
/* Define this as 1 if `char' should by default be signed; else as 0.
--- 298,304 ----
/* Define this if move instructions will actually fail to work
when given unaligned data. */
! #define STRICT_ALIGNMENT 1
/* Define this as 1 if `char' should by default be signed; else as 0.