diff options
author | Jim Wilson <wilson@cygnus.com> | 1998-07-01 22:28:06 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1998-07-01 15:28:06 -0700 |
commit | 00a2e46cb0d6e817d4a4943b0348580ae21e388d (patch) | |
tree | 0edc6be47d3db6f086234799fd2ffc6170773d3a /gcc | |
parent | 4c95db67505f94a1c8f0554a4a3d00318e214b62 (diff) | |
download | gcc-00a2e46cb0d6e817d4a4943b0348580ae21e388d.zip gcc-00a2e46cb0d6e817d4a4943b0348580ae21e388d.tar.gz gcc-00a2e46cb0d6e817d4a4943b0348580ae21e388d.tar.bz2 |
Fix 24 powerpc-ibm-aix4.1 gdb testsuite failures due to bad gcc debug info.
* xcoffout.c (xcoffout_begin_function): Call xcoffout_block for
the zero'th block.
From-SVN: r20882
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/xcoffout.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3724b48..2ddab52 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 1 22:25:43 1998 Jim Wilson <wilson@cygnus.com> + + * xcoffout.c (xcoffout_begin_function): Call xcoffout_block for + the zero'th block. + Wed Jul 1 23:12:58 1998 Ken Raeburn <raeburn@cygnus.com> * h8300.c (print_operand): Delete %L support. diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c index ebbd9c6c..baa0cd2 100644 --- a/gcc/xcoffout.c +++ b/gcc/xcoffout.c @@ -500,6 +500,16 @@ xcoffout_begin_function (file, last_linenum) { ASM_OUTPUT_LFB (file, last_linenum); dbxout_parms (DECL_ARGUMENTS (current_function_decl)); + + /* Emit the symbols for the outermost BLOCK's variables. sdbout.c does this + in sdbout_begin_block, but there is no guarantee that there will be any + inner block 1, so we must do it here. This gives a result similar to + dbxout, so it does make some sense. */ + do_block = 0; + next_block_number = 0; + xcoffout_block (DECL_INITIAL (current_function_decl), 0, + DECL_ARGUMENTS (current_function_decl)); + ASM_OUTPUT_SOURCE_LINE (file, last_linenum); } |