Commit 4471aff6 by Nathan Froyd Committed by Nathan Froyd

libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.

	* libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
	* libgcc2.c: Likewise.

From-SVN: r165238
parent c6282415
2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
* libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
* libgcc2.c: Likewise.
2010-10-09 Richard Guenther <rguenther@suse.de> 2010-10-09 Richard Guenther <rguenther@suse.de>
PR lto/45956 PR lto/45956
...@@ -40,7 +40,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -40,7 +40,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#if MIN_UNITS_PER_WORD > 4 #if MIN_UNITS_PER_WORD > 4
# define LIBGCC2_MAX_UNITS_PER_WORD 8 # define LIBGCC2_MAX_UNITS_PER_WORD 8
#elif (MIN_UNITS_PER_WORD > 2 \ #elif (MIN_UNITS_PER_WORD > 2 \
|| (MIN_UNITS_PER_WORD > 1 && LONG_LONG_TYPE_SIZE > 32)) || (MIN_UNITS_PER_WORD > 1 && __SIZEOF_LONG_LONG__ > 4))
# define LIBGCC2_MAX_UNITS_PER_WORD 4 # define LIBGCC2_MAX_UNITS_PER_WORD 4
#else #else
# define LIBGCC2_MAX_UNITS_PER_WORD MIN_UNITS_PER_WORD # define LIBGCC2_MAX_UNITS_PER_WORD MIN_UNITS_PER_WORD
......
...@@ -140,7 +140,7 @@ typedef unsigned int UHItype __attribute__ ((mode (HI))); ...@@ -140,7 +140,7 @@ typedef unsigned int UHItype __attribute__ ((mode (HI)));
/* These typedefs are usually forbidden on dsp's with UNITS_PER_WORD 1. */ /* These typedefs are usually forbidden on dsp's with UNITS_PER_WORD 1. */
typedef int SItype __attribute__ ((mode (SI))); typedef int SItype __attribute__ ((mode (SI)));
typedef unsigned int USItype __attribute__ ((mode (SI))); typedef unsigned int USItype __attribute__ ((mode (SI)));
#if LONG_LONG_TYPE_SIZE > 32 #if __SIZEOF_LONG_LONG__ > 4
/* These typedefs are usually forbidden on archs with UNITS_PER_WORD 2. */ /* These typedefs are usually forbidden on archs with UNITS_PER_WORD 2. */
typedef int DItype __attribute__ ((mode (DI))); typedef int DItype __attribute__ ((mode (DI)));
typedef unsigned int UDItype __attribute__ ((mode (DI))); typedef unsigned int UDItype __attribute__ ((mode (DI)));
...@@ -342,7 +342,7 @@ extern cmp_return_type __ucmpdi2 (DWtype, DWtype); ...@@ -342,7 +342,7 @@ extern cmp_return_type __ucmpdi2 (DWtype, DWtype);
#if MIN_UNITS_PER_WORD > 1 #if MIN_UNITS_PER_WORD > 1
extern SItype __bswapsi2 (SItype); extern SItype __bswapsi2 (SItype);
#endif #endif
#if LONG_LONG_TYPE_SIZE > 32 #if __SIZEOF_LONG_LONG__ > 4
extern DItype __bswapdi2 (DItype); extern DItype __bswapdi2 (DItype);
#endif #endif
......
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