[Bug debug/17924] [4.0 Regression] gcc.dg/debug/dwarf2/dwarf-die7.c fails

bje at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 15 06:07:00 GMT 2004


------- Additional Comments From bje at gcc dot gnu dot org  2004-10-15 06:07 -------
gen_subprogram_die is indeed being called for the decl of `t'.
The problem seems a bit more subtle.  This program illustrates the problem:

/*
  Fails with:
  gcc foo.c -DSTATIC=static -O3 -dA -S -gdwarf-2

  Succeeds with:
  gcc foo.c -O3 -dA -S -gdwarf-2
*/

#ifndef STATIC
#define STATIC
#endif

STATIC int f () { return 3; } 
int main() { return f (); }

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17924



More information about the Gcc-bugs mailing list