diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2011-07-31 18:10:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2011-07-31 11:10:41 -0700 |
commit | 3ee7be4c1949fcc99d309bbb40cf117ac1e39641 (patch) | |
tree | 96d7aaf5850470e9b867489c03be15acc37ace0b /gcc | |
parent | deb1f6171dd2d87bdf5f7d76b69336126aaa9cc9 (diff) | |
download | gcc-3ee7be4c1949fcc99d309bbb40cf117ac1e39641.zip gcc-3ee7be4c1949fcc99d309bbb40cf117ac1e39641.tar.gz gcc-3ee7be4c1949fcc99d309bbb40cf117ac1e39641.tar.bz2 |
Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE.
2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
of TARGET_64BIT.
(PTRDIFF_TYPE): Likewise.
From-SVN: r176981
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/x86-64.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e092d00..c631dfc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-07-31 H.J. Lu <hongjiu.lu@intel.com> + + * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead + of TARGET_64BIT. + (PTRDIFF_TYPE): Likewise. + 2011-07-31 Uros Bizjak <ubizjak@gmail.com> PR target/49920 diff --git a/gcc/config/i386/x86-64.h b/gcc/config/i386/x86-64.h index b85dab9..d20f326 100644 --- a/gcc/config/i386/x86-64.h +++ b/gcc/config/i386/x86-64.h @@ -38,10 +38,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define MCOUNT_NAME "mcount" #undef SIZE_TYPE -#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int") +#define SIZE_TYPE (TARGET_LP64 ? "long unsigned int" : "unsigned int") #undef PTRDIFF_TYPE -#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int") +#define PTRDIFF_TYPE (TARGET_LP64 ? "long int" : "int") #undef WCHAR_TYPE #define WCHAR_TYPE "int" |