[Bug c/70765] GCC fails to detect possibly uninitialized variable

2016-04-22 Thread mike at conlen dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70765 --- Comment #2 from Mike Conlen --- If I compile with -O3 the compiler produces (as expected) $ gcc -Wall -Wextra -Werror -save-temps -O3 -c test.c test.c: In function 'try_to_fail': test.c:25:2: error: 'data' is used uninitialized in this funct

[Bug c/70765] GCC fails to detect possibly uninitialized variable

2016-04-22 Thread mike at conlen dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70765 --- Comment #1 from Mike Conlen --- Created attachment 38330 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38330&action=edit a second translation unit Using the second translation unit will cause the compilation to error (as expected) wit

[Bug c/70765] New: GCC fails to detect possibly uninitialized variable

2016-04-22 Thread mike at conlen dot org
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mike at conlen dot org Target Milestone: --- Created attachment 38329 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38329&action=edit main() .i file GCC without an optimization option does not catch a si