Commit fe86047c by Ulrich Weigand Committed by Ulrich Weigand

s390.h: Do not include fixdfdi.h on s390x.

	* config/s390/s390.h: Do not include fixdfdi.h on s390x.
	(TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
	(MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.

From-SVN: r64669
parent f3146d75
2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.h: Do not include fixdfdi.h on s390x.
(TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
(MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de> 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR doc-bug/9813 PR doc-bug/9813
......
...@@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */
/* Override the __fixdfdi etc. routines when building libgcc2. /* Override the __fixdfdi etc. routines when building libgcc2.
??? This should be done in a cleaner way ... */ ??? This should be done in a cleaner way ... */
#ifdef IN_LIBGCC2 #if defined (IN_LIBGCC2) && !defined (__s390x__)
#include <s390/fixdfdi.h> #include <s390/fixdfdi.h>
#endif #endif
...@@ -134,6 +134,17 @@ extern int target_flags; ...@@ -134,6 +134,17 @@ extern int target_flags;
#define CAN_DEBUG_WITHOUT_FP #define CAN_DEBUG_WITHOUT_FP
/* In libgcc2, determine target settings as compile-time constants. */
#ifdef IN_LIBGCC2
#undef TARGET_64BIT
#ifdef __s390x__
#define TARGET_64BIT 1
#else
#define TARGET_64BIT 0
#endif
#endif
/* Target machine storage layout. */ /* Target machine storage layout. */
/* Everything is big-endian. */ /* Everything is big-endian. */
...@@ -143,7 +154,9 @@ extern int target_flags; ...@@ -143,7 +154,9 @@ extern int target_flags;
/* Width of a word, in units (bytes). */ /* Width of a word, in units (bytes). */
#define UNITS_PER_WORD (TARGET_64BIT ? 8 : 4) #define UNITS_PER_WORD (TARGET_64BIT ? 8 : 4)
#ifndef IN_LIBGCC2
#define MIN_UNITS_PER_WORD 4 #define MIN_UNITS_PER_WORD 4
#endif
#define MAX_BITS_PER_WORD 64 #define MAX_BITS_PER_WORD 64
/* Function arguments and return values are promoted to word size. */ /* Function arguments and return values are promoted to word size. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment