This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Cast to _Unwind_Exception_Class when setting exc.exception_class


On Wed, Nov 21, 2012 at 9:14 AM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> On Wed, 19 Sep 2012, H.J. Lu wrote:
>
>> diff --git a/nptl/ChangeLog b/nptl/ChangeLog
>> index 5d784a5..ebb9048 100644
>> --- a/nptl/ChangeLog
>> +++ b/nptl/ChangeLog
>> @@ -1,3 +1,9 @@
>> +2012-09-19  H.J. Lu  <hongjiu.lu@intel.com>
>> +
>> +     * sysdeps/i386/tls.h (THREAD_SETMEM): Cast to uint64_t for
>> +     64-bit store.
>> +     (THREAD_SETMEM_NC): Likewise.
>> +
>
> I'm seeing large numbers of "cast from pointer to integer of different
> size" warnings on x86 builds, around uses of these macros.  I suspect this
> patch is responsible - if code, even in part of an "if" statement that
> won't be executed, contains a pointer-to-integer cast, you need to cast to
> a pointer of the same size as the integer, and possibly then from there to
> a type of the desired final width.
>

This is a known bug in GCC and there is no workaround.


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]