This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[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