[Bug debug/21828] [4.0/4.1 Regression] debug info omitted for global variables
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jun 5 23:50:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-05 23:50 -------
(In reply to comment #3)
> Is there a test case for this bug? (The usual things: preprocessed source,
> command-line, etc.?)
>From <http://gcc.gnu.org/ml/gcc/2005-05/msg01635.html>:
You can reproduce it using:
static int i;
int main(void)
{
i += 3;
i *= 5;
return 0;
}
and readelf and looking for the DW_TAG_variable tag.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21828
More information about the Gcc-bugs
mailing list