This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40517] strict-aliasing warning contains internal variable name
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2009 20:52:47 -0000
- Subject: [Bug c/40517] strict-aliasing warning contains internal variable name
- References: <bug-40517-3639@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from manu at gcc dot gnu dot org 2009-06-25 20:52 -------
GCC 4.5 produces nothing with -Wall -O2. With -Wstrict-aliasing=1 it says:
pr40517.c:4514:8: warning: dereferencing type-punned pointer might break
strict-aliasing rules
pr40517.c:4536:6: warning: dereferencing type-punned pointer might break
strict-aliasing rules
which points to:
4514 IDX_debug_aranges, (unsigned char **)&readp,
so the column info is not very precise.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40517