diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-10-09 21:12:56 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-10-09 21:12:56 +0000 |
commit | 4471aff653622f322b718cce206f36e8bd50029c (patch) | |
tree | e2b2641e8dce544749ba68610953e42c750afd86 /gcc | |
parent | c6282415bfcde16fb242449d1befd3b69976c51c (diff) | |
download | gcc-4471aff653622f322b718cce206f36e8bd50029c.zip gcc-4471aff653622f322b718cce206f36e8bd50029c.tar.gz gcc-4471aff653622f322b718cce206f36e8bd50029c.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/libgcc2.c | 2 | ||||
-rw-r--r-- | gcc/libgcc2.h | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5cb3cec..08acd50 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> PR lto/45956 diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 02828e3..20e7bd2 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -40,7 +40,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #if MIN_UNITS_PER_WORD > 4 # define LIBGCC2_MAX_UNITS_PER_WORD 8 #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 #else # define LIBGCC2_MAX_UNITS_PER_WORD MIN_UNITS_PER_WORD diff --git a/gcc/libgcc2.h b/gcc/libgcc2.h index 56dc9f7..f344917 100644 --- a/gcc/libgcc2.h +++ b/gcc/libgcc2.h @@ -140,7 +140,7 @@ typedef unsigned int UHItype __attribute__ ((mode (HI))); /* 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 __SIZEOF_LONG_LONG__ > 4 /* 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))); @@ -342,7 +342,7 @@ extern cmp_return_type __ucmpdi2 (DWtype, DWtype); #if MIN_UNITS_PER_WORD > 1 extern SItype __bswapsi2 (SItype); #endif -#if LONG_LONG_TYPE_SIZE > 32 +#if __SIZEOF_LONG_LONG__ > 4 extern DItype __bswapdi2 (DItype); #endif |