diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2009-09-13 10:46:11 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2009-09-13 10:46:11 +0000 |
commit | 725730f272e7ef4d05a6af48313c3cbdac636a5d (patch) | |
tree | ccd535803458c5e9c5296cc0d263b63525bbd580 /gcc/dbxout.c | |
parent | 75152bcb194ff350853ac5cc13a1e04ff82c7f81 (diff) | |
download | gcc-725730f272e7ef4d05a6af48313c3cbdac636a5d.zip gcc-725730f272e7ef4d05a6af48313c3cbdac636a5d.tar.gz gcc-725730f272e7ef4d05a6af48313c3cbdac636a5d.tar.bz2 |
tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
* tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
* dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
(dbxout_begin_function): Likewise.
* final.c (dwarf2_debug_info_emitted_p): New predicate.
(final_start_function): Do not emit debug info if DECL_IGNORED_P is
set on the function.
(final_end_function): Likewise.
(final_scan_insn): Likewise.
(rest_of_handle_final): Likewise.
* varasm.c (assemble_start_function): Likewise.
* config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
From-SVN: r151670
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index bc7965e..097b20b 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -902,7 +902,7 @@ dbxout_finish_complex_stabs (tree sym, stab_code_type code, #if defined (DBX_DEBUGGING_INFO) static void -dbxout_function_end (tree decl) +dbxout_function_end (tree decl ATTRIBUTE_UNUSED) { char lscope_label_name[100]; @@ -921,8 +921,7 @@ dbxout_function_end (tree decl) named sections. */ if (!use_gnu_debug_info_extensions || NO_DBX_FUNCTION_END - || !targetm.have_named_sections - || DECL_IGNORED_P (decl)) + || !targetm.have_named_sections) return; /* By convention, GCC will mark the end of a function with an N_FUN @@ -3683,9 +3682,6 @@ dbxout_begin_function (tree decl) { int saved_tree_used1; - if (DECL_IGNORED_P (decl)) - return; - saved_tree_used1 = TREE_USED (decl); TREE_USED (decl) = 1; if (DECL_NAME (DECL_RESULT (decl)) != 0) |