--- 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
--- 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
/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.3.0/:/usr/lib/gcc/x86_64-redhat-linux/4.3.0/:/usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-DHAVE_CONFIG_H' '-I.'
'-I../../binutils-2.15.94.0.2.2/bfd' '-I.' '-D_GNU_SOURCE'
'-I../../binutils-2.15.94.0.2.2/include' '-I../../binutils-2.15.94.0.2.2/intl'
'-I../intl' '-W' '-Wall' '-Wstrict-prototypes' '-Wmissing-prototypes' '-g'
'-O2' '-c' '-o' '/users/hblurfrushan/.ccache/tmp.hash.els-d60685.13738.o'
'-mtune=generic'
--
Summary: Optimization error when compiling bfd/ecofflink.c on
x86_64
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dahowell at directv dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40216
--
What|Removed |Added
Attachment #9138|Short test file which |Short test file which
description|demonstrates optimization |demonstrates optimization
--- Additional Comments From dahowell at directv dot com 2005-06-23 23:48
---
Created an attachment (id=9138)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9138&action=view)
Short test file which demonstrates optimization failuer
This is pretty much what was
everity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dahowell at directv dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-linux
GCC host triplet: powerpc-linux
GCC target triplet