This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/34386] -Wstrict-aliasing=3 ineffective (tree-ssa-alias-warnings.c)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]