Commit 3c734272 by Richard Kenner

(final_start_function): Move call to sdbout_begin_function back to...

(final_start_function): Move call to sdbout_begin_function back to
final_scan_insn on MIPS systems so parameter descriptions are
recognized.

From-SVN: r10591
parent 0982040d
...@@ -892,8 +892,9 @@ final_start_function (first, file, optimize) ...@@ -892,8 +892,9 @@ final_start_function (first, file, optimize)
/* For SDB and XCOFF, the function beginning must be marked between /* For SDB and XCOFF, the function beginning must be marked between
the function label and the prologue. We always need this, even when the function label and the prologue. We always need this, even when
-g1 was used. */ -g1 was used. Defer on MIPS systems so that parameter descriptions
#ifdef SDB_DEBUGGING_INFO follow function entry. */
#if defined(SDB_DEBUGGING_INFO) && !defined(MIPS_DEBUGGING_INFO)
if (write_symbols == SDB_DEBUG) if (write_symbols == SDB_DEBUG)
sdbout_begin_function (last_linenum); sdbout_begin_function (last_linenum);
else else
...@@ -1314,6 +1315,13 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) ...@@ -1314,6 +1315,13 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes)
break; break;
if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_BEG) if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_FUNCTION_BEG)
{ {
#if defined(SDB_DEBUGGING_INFO) && defined(MIPS_DEBUGGING_INFO)
/* MIPS stabs require the parameter descriptions to be after the
function entry point rather than before. */
if (write_symbols == SDB_DEBUG)
sdbout_begin_function (last_linenum);
else
#endif
#ifdef DWARF_DEBUGGING_INFO #ifdef DWARF_DEBUGGING_INFO
/* This outputs a marker where the function body starts, so it /* This outputs a marker where the function body starts, so it
must be after the prologue. */ must be after the prologue. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment