PATCH: PR target/53539: Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64
H.J. Lu
hjl.tools@gmail.com
Fri Jul 6 18:27:00 GMT 2012
On Fri, Jun 29, 2012 at 2:43 PM, Richard Henderson <rth@redhat.com> wrote:
> On 06/29/2012 11:10 AM, H.J. Lu wrote:
>>> 2012-05-31 H.J. Lu <hongjiu.lu@intel.com>
>>>
>>> PR target/53539
>>> * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
>>> TARGET_LP64.
>>>
>>> diff --git a/gcc/config/i386/gnu-user64.h b/gcc/config/i386/gnu-user64.h
>>> index 0e66d26..2941332 100644
>>> --- a/gcc/config/i386/gnu-user64.h
>>> +++ b/gcc/config/i386/gnu-user64.h
>>> @@ -91,3 +91,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If n
>>> ot, see
>>> #define TARGET_THREAD_SPLIT_STACK_OFFSET \
>>> (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30)
>>> #endif
>>> +
>>> +#undef WCHAR_TYPE
>>> +#define WCHAR_TYPE (TARGET_LP64 ? "int" : "long int")
>>
>> Hi Richard,
>>
>> Is this patch OK for trunk?
>>
>> Thanks.
>
> Yes, this is fine.
>
I'd like to backport it to 4.6/4.7 branches. Is that OK?
Thanks.
--
H.J.
More information about the Gcc-patches
mailing list