This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/21828] [4.0/4.1 Regression] debug info omitted for global variables
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2005 23:50:35 -0000
- Subject: [Bug debug/21828] [4.0/4.1 Regression] debug info omitted for global variables
- References: <20050530184504.21828.bonzini@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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