From 00262c8ac76a4805ab153a7ed124fa671fc97fc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 29 Feb 2000 23:33:50 +0000 Subject: c-decl.c (current_function_decl): Move to toplev.c. * c-decl.c (current_function_decl): Move to toplev.c. (init_decl_processing): Don't add current_function_decl as a ggc root here. * dbxout.c (dbxout_symbol): Change return type to int. (dbxout_symbol_location, dbxout_syms): Likewise. (dbxout_block): Don't emit LBRAC/RBRAC pairs for blocks without any locals. Use current_function_func_begin_label if set. * dbxout.h (dbxout_symbol, dbxout_syms): Change return type. * dwarf2out.c (dwarf2out_begin_prologue): Set current_function_func_begin_label. * final.c (final_start_function): Reset it. * toplev.c (current_function_decl): Define it here. (current_function_func_begin_label): New variable. (main): Add both as ggc roots. * tree.h (current_function_func_begin_label): Declare. * ch/decl.c (current_function_decl): Move to toplev.c. * cp/decl.c (current_function_decl): Move to toplev.c. * f/com.c (current_function_decl): Move to toplev.c. * java/decl.c (current_function_decl): Move to toplev.c. From-SVN: r32268 --- gcc/dbxout.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/dbxout.h') diff --git a/gcc/dbxout.h b/gcc/dbxout.h index 899d5d9..d13fbf1 100644 --- a/gcc/dbxout.h +++ b/gcc/dbxout.h @@ -27,10 +27,10 @@ extern void dbxout_resume_previous_source_file PARAMS ((void)); extern void dbxout_source_file PARAMS ((FILE *, const char *)); extern void dbxout_types PARAMS ((tree)); extern void dbxout_args PARAMS ((tree)); -extern void dbxout_symbol PARAMS ((tree, int)); +extern int dbxout_symbol PARAMS ((tree, int)); extern void dbxout_parms PARAMS ((tree)); extern void dbxout_reg_parms PARAMS ((tree)); -extern void dbxout_syms PARAMS ((tree)); +extern int dbxout_syms PARAMS ((tree)); extern void dbxout_function PARAMS ((tree)); extern void dbxout_source_line PARAMS ((FILE *, const char *, int)); extern void dbxout_begin_function PARAMS ((tree)); -- cgit v1.1