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]

PATCH: libgcc2.h breaks ia32 build


This patch:

2000-09-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>

        * libgcc2.h: Use LONG_LONG_TYPE_SIZE instead of MIN_UNITS_PER_WORD
        to decide whether 64-bit support must be generated.

breaks ia32 build. This one seems to fix it.

-- 
H.J. Lu (hjl@gnu.org)
---
2000-09-10  H.J. Lu  (hjl@gnu.org)

	* libgcc2.h Check both MIN_UNITS_PER_WORD and LONG_LONG_TYPE_SIZE
	for 64-bit support.

Index: gcc/libgcc2.h
===================================================================
RCS file: /work/cvs/gnu/egcs/gcc/libgcc2.h,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 libgcc2.h
--- gcc/libgcc2.h	2000/09/10 16:13:43	1.1.1.2
+++ gcc/libgcc2.h	2000/09/10 16:35:13
@@ -90,7 +90,7 @@ typedef unsigned int UHItype	__attribute
 /* These typedefs are usually forbidden on dsp's with UNITS_PER_WORD 1 */
 typedef 	 int SItype	__attribute__ ((mode (SI)));
 typedef unsigned int USItype	__attribute__ ((mode (SI)));
-#if LONG_LONG_TYPE_SIZE > 32
+#if MIN_UNITS_PER_WORD > 2 || LONG_LONG_TYPE_SIZE > 32
 /* These typedefs are usually forbidden on archs with UNITS_PER_WORD 2 */
 typedef		 int DItype	__attribute__ ((mode (DI)));
 typedef unsigned int UDItype	__attribute__ ((mode (DI)));

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