This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.2.3 patch for Xtensa - remove poisoned macros
- From: Bob Wilson <bwilson at tensilica dot com>
- To: gdr at integrable-solutions dot net
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 7 Apr 2003 17:11:28 -0700
- Subject: 3.2.3 patch for Xtensa - remove poisoned macros
- Organization: Tensilica, Inc.
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 ----