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]

Set STRICT_ALIGNMENT even for v850e


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.
  


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