* PATCH: [x32]: Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE
@ 2011-07-30 0:55 H.J. Lu
2011-07-31 3:01 ` Uros Bizjak
0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2011-07-30 0:55 UTC (permalink / raw)
To: gcc-patches, Uros Bizjak
Hi,
X32 is 32bit. This patch checks TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE.
OK for trunk?
Thanks.
H.J.
---
2011-07-29 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
of TARGET_64BIT.
(PTRDIFF_TYPE): Likewise.
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"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: [x32]: Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE
2011-07-30 0:55 PATCH: [x32]: Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE H.J. Lu
@ 2011-07-31 3:01 ` Uros Bizjak
2011-07-31 22:00 ` H.J. Lu
0 siblings, 1 reply; 3+ messages in thread
From: Uros Bizjak @ 2011-07-31 3:01 UTC (permalink / raw)
To: H.J. Lu; +Cc: gcc-patches
On Sat, Jul 30, 2011 at 12:41 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> X32 is 32bit. This patch checks TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE.
> OK for trunk?
OK, if tested on x32. You didn't say how the patch was tested.
Thanks,
Uros.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: [x32]: Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE
2011-07-31 3:01 ` Uros Bizjak
@ 2011-07-31 22:00 ` H.J. Lu
0 siblings, 0 replies; 3+ messages in thread
From: H.J. Lu @ 2011-07-31 22:00 UTC (permalink / raw)
To: Uros Bizjak; +Cc: gcc-patches
On Sat, Jul 30, 2011 at 10:15 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Sat, Jul 30, 2011 at 12:41 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
>
>> X32 is 32bit. This patch checks TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE.
>> OK for trunk?
>
> OK, if tested on x32. You didn't say how the patch was tested.
>
Checked in. I should have mentioned that it was tested on x32.
--
H.J.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-31 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-30 0:55 PATCH: [x32]: Check TARGET_LP64 for SIZE_TYPE/PTRDIFF_TYPE H.J. Lu
2011-07-31 3:01 ` Uros Bizjak
2011-07-31 22:00 ` H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).