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]

[PATCH] Fix __ctype_b_loc aliasing violation


Jakub Jelinek writes:
> Yeah, indeed.  I can reproduce it, a lot of stuff segfaults in glibc
> compiled with current GCC trunk on x86_64-linux, starting with localedef.
> 
> Going through a union is just a workaround for a warning, not real
> fix and indeed this aliasing violation finally caught us.
> 
> Here is a fix, tested with gcc 4.4.  Guess it would be good if somebody
> tested it on Hurd as well.

Great!  Thanks for the fix.

Adam


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