This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/55519] New: [asan] False positive -Wmaybe-uninitialized
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Nov 2012 19:36:26 +0000
- Subject: [Bug sanitizer/55519] New: [asan] False positive -Wmaybe-uninitialized
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55519
Bug #: 55519
Summary: [asan] False positive -Wmaybe-uninitialized
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl.tools@gmail.com
CC: dodji@gcc.gnu.org, dvyukov@gcc.gnu.org,
jakub@gcc.gnu.org, kcc@gcc.gnu.org
When -fsanitize=address is used with -O2 -flto=jobserver -frandom-seed=1,
I got
/export/gnu/import/git/gcc/gcc/tree-ssa-loop-im.c: In function
âstore_motion_loop(loop*, bitmap_head_def*)â:
/export/gnu/import/git/gcc/gcc/tree-ssa-loop-im.c:2014:29: warning:
âstore_flagâ may be used uninitialized in this function [-Wmaybe-uninitialized]
NULL_TREE, NULL_TREE);
^
/export/gnu/import/git/gcc/gcc/tree-ssa-loop-im.c:2113:17: note: âstore_flagâ
was declared here
tree tmp_var, store_flag;
/export/gnu/import/git/gcc/gcc/gcc.c: In function âdo_spec_1(char const*, int,
char const*)â:
/export/gnu/import/git/gcc/gcc/../include/obstack.h:337:52: warning:
âsave_growing_valueâ may be used uninitialized in this function
[-Wmaybe-uninitialized]
_obstack_memcpy (__o->next_free, (where), __len); \
^
/export/gnu/import/git/gcc/gcc/gcc.c:5489:9: note: âsave_growing_valueâ was
declared here
void *save_growing_value;