[Bug middle-end/34386] -Wstrict-aliasing=3 ineffective (tree-ssa-alias-warnings.c)
hp at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Dec 8 00:44:00 GMT 2007
------- Comment #2 from hp at gcc dot gnu dot org 2007-12-08 00:44 -------
I'm not sure this is related but a while ago I ran valgrind hoping to
spot the cause for another bug, and valgrind complained about
tree-ssa-alias-warnings.c:processed_func_p (tree func)
which hashes the address of its argument:
*slot = &func;
where it probably meant
*slot = func;
This bug looked like it could mask warnings or possibly cause multiple
warnings for the same code.
Another solution would replace the machinery where this is used with
a pointer_set for the hashing, or available bits in the tree to mark
the visitedness.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34386
More information about the Gcc-bugs
mailing list