------- Additional Comments From stuart at apple dot com 2005-01-19 00:49 ------- This is a regression from 3.3; I think the cause is this line in cgraphunit.c (cgraph_build_static_cdtor): (approximately line 1847)
DECL_IGNORED_P (decl) = 1; Deleting this line "fixes" the symptom, but I believe the right fix lies in dbxout.c. The start-function stab comes from dbxout.c(dbxout_symbol), near line 2346: /* Ignore nameless syms, but don't ignore type tags. */ if ((DECL_NAME (decl) == 0 && TREE_CODE (decl) != TYPE_DECL) || DECL_IGNORED_P (decl)) DBXOUT_DECR_NESTING_AND_RETURN (0); This check causes the omission of the start-function stab. The corresponding end-function stab comes from dbxout.c (dbxout_function_end), near line 465: #ifdef DBX_OUTPUT_NFUN DBX_OUTPUT_NFUN (asm_out_file, lscope_label_name, current_function_decl); #else =>fprintf (asm_out_file, "%s\"\",%d,0,0,", ASM_STABS_OP, N_FUN); assemble_name (asm_out_file, lscope_label_name); putc ('-', asm_out_file); assemble_name (asm_out_file, XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0)); fprintf (asm_out_file, "\n"); #endif -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19521