------- 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
