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]

3.2.3 patch for Xtensa - remove poisoned macros


I was just informed that the Xtensa port on the 3.2 branch can only be built 
as a cross compiler because it defines several macros that have been 
poisoned.  The attached patch fixes this by removing the poisoned macro 
definitions.  This seems to fit the criteria for last-minute 3.2.3 patches: 
it's essentially zero risk and without it you can't build a native Xtensa 
compiler.

Gaby, is this ok?

(The problem does not exist on the 3.3 or main branches because Richard 
Henderson already fixed it there.  Thanks!)

2003-04-07  Bob Wilson  <bob dot wilson at asm dot org>

	* config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE, IMPLICIT_FIX_EXPR,
	EASY_DIV_EXPR): Delete poisoned macro definitions.


Index: xtensa.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/xtensa.h,v
retrieving revision 1.1.12.7.2.3
diff -c -3 -r1.1.12.7.2.3 xtensa.h
*** xtensa.h	5 Feb 2003 18:02:26 -0000	1.1.12.7.2.3
--- xtensa.h	7 Apr 2003 23:49:50 -0000
***************
*** 251,257 ****
  
  /* Size in bits of various types on the target machine.  */
  #define INT_TYPE_SIZE 32
- #define MAX_INT_TYPE_SIZE 32
  #define SHORT_TYPE_SIZE 16
  #define LONG_TYPE_SIZE 32
  #define MAX_LONG_TYPE_SIZE 32
--- 251,256 ----
***************
*** 1263,1274 ****
     to contain offsets from the address of the table.
     Do not define this if the table should contain absolute addresses.  */
  /* #define CASE_VECTOR_PC_RELATIVE */
- 
- /* Specify the tree operation to be used to convert reals to integers.  */
- #define IMPLICIT_FIX_EXPR FIX_ROUND_EXPR
- 
- /* This is the kind of divide that is easiest to do in the general case.  */
- #define EASY_DIV_EXPR TRUNC_DIV_EXPR
  
  /* Define this as 1 if 'char' should by default be signed; else as 0.  */
  #define DEFAULT_SIGNED_CHAR 0
--- 1262,1267 ----

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