http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56231
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |ASSIGNED
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-08
10:54:30 UTC ---
Similar (same testcase) with using
> gcc -include t.c t2.c -O2 -Wuninitialized
In file included from <command-line>:0:0:
./t.c: In function 'main':
./t.c:6:5: warning: 'a' is used uninitialized in this function
[-Wuninitialized]
> gcc -include t2.c t.c -O2 -Wuninitialized
t.c: In function 'main':
t.c:6:5: warning: 'a' is used uninitialized in this function [-Wuninitialized]
but I wonder how LTO manages to get the "included from t.c" ...
tracing includes shows
t.c
. t2.c
t.c
t2.c
t.c
. t2.c
. t.c
In file included from t.c:1:0:
...
Ah, of couse - cross-LTO file we wreck tracking of current file/line/column.
I have a fix!