https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
Manuel López-Ibáñez changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
--- Comment #1 from Marc Glisse glisse at gcc dot gnu.org ---
This is all dead code, gcc discards it before it looks at possible issues.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
Richard Biener rguenth at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
--- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com ---
Yeah, shared between the front-ends, this isn't a C++-only issue, of course.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
--- Comment #4 from Guido Del Sarto Gildos at gmail dot com ---
I do not receive warnings with the following (no dead code).
#
#include stdio.h
void warning( int pippo[100] )
{
pippo[1000] += pippo[0];
printf( %d\n, pippo[1000] ) ;
}
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
--- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com ---
Remember that -O2 is required for this kind of middle-end check. A front-end
check would not.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
Paolo Carlini paolo.carlini at oracle dot com changed:
What|Removed |Added
CC||rguenth at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57367
--- Comment #7 from Richard Biener rguenth at gcc dot gnu.org ---
(In reply to Paolo Carlini from comment #6)
Disappointing, Richard, that in 4.8/4.9 (vs 4.7) we don't seem to warn at
all for the testcase in Comment#4 too. I'm wondering if the