diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-21 10:06:20 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-21 10:06:20 +0000 |
commit | 03f8fdbe0ae40cfb2795be4859737d0a919aaf59 (patch) | |
tree | 025dd3e471114855d731efe83d4d4838c6605287 /gcc/dbxout.c | |
parent | 521053af9b430d06f5bbbbe81c17d4f2bce73d5f (diff) | |
download | gcc-03f8fdbe0ae40cfb2795be4859737d0a919aaf59.tar.gz |
* dbxout.c (dbxout_function_end): Emit Lscope label always.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95326 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 7a9cb60377b..6383d48d0e9 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -907,15 +907,6 @@ dbxout_function_end (tree decl) { char lscope_label_name[100]; - /* The N_FUN tag at the end of the function is a GNU extension, - which may be undesirable, and is unnecessary if we do not have - named sections. */ - if (!use_gnu_debug_info_extensions - || NO_DBX_FUNCTION_END - || !targetm.have_named_sections - || DECL_IGNORED_P (decl)) - return; - /* The Lscope label must be emitted even if we aren't doing anything else; dbxout_block needs it. */ function_section (current_function_decl); @@ -927,6 +918,15 @@ dbxout_function_end (tree decl) targetm.asm_out.internal_label (asm_out_file, "Lscope", scope_labelno); scope_labelno++; + /* The N_FUN tag at the end of the function is a GNU extension, + which may be undesirable, and is unnecessary if we do not have + named sections. */ + if (!use_gnu_debug_info_extensions + || NO_DBX_FUNCTION_END + || !targetm.have_named_sections + || DECL_IGNORED_P (decl)) + return; + /* By convention, GCC will mark the end of a function with an N_FUN symbol and an empty string. */ #ifdef DBX_OUTPUT_NFUN |