[Bug debug/43222] two DEBUG i => 0 generated after loop copy header
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 1 23:14:00 GMT 2010
------- Comment #2 from pinskia at gcc dot gnu dot org 2010-03-01 23:14 -------
Here is a simplier testcase which shows the problem is even worse:
int gif_read_lzw(int input_code_size)
{
int i;
short code_size = 0;
for (i = 0; i < input_code_size; i ++)
code_size ++;
return code_size;
}
--- CUT ---
We have now 8 debug statements after loop copy header when we really only need
4 (2 before the loop and 2 inside the loop). Why are we duplicating already
emitted debug statements?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43222
More information about the Gcc-bugs
mailing list