[Bug c/40216] Optimization error when compiling bfd/ecofflink.c on x86_64

2009-05-20 Thread dahowell at directv dot com
--- Comment #1 from dahowell at directv dot com 2009-05-21 03:47 --- Created an attachment (id=17897) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17897&action=view) ecofflink.i preprocessed source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40216

[Bug c/40216] Optimization error when compiling bfd/ecofflink.c on x86_64

2009-05-21 Thread schwab at linux-m68k dot org
--- Comment #2 from schwab at linux-m68k dot org 2009-05-21 09:00 --- This is violating the C strict aliasing rule: if (! ecoff_add_bytes ((char **) &debug->external_ext, (char **) &debug->external_ext_end, (symhdr->iextMax + 1) * (size_t) external_ext_size)) whic

[Bug c/40216] Optimization error when compiling bfd/ecofflink.c on x86_64

2009-05-21 Thread dahowell at directv dot com
--- Comment #3 from dahowell at directv dot com 2009-05-21 21:17 --- (In reply to comment #2) So this is a false negative for -Wstrict-aliasing=3. It is flagged by -Wstrict-aliasing=2, however. Is -Wstrict-aliasing=3 not catching it because the pointer is not being dereferenced, except i