]> gcc.gnu.org Git - gcc.git/commitdiff
Fix 24 powerpc-ibm-aix4.1 gdb testsuite failures due to bad gcc debug info.
authorJim Wilson <wilson@cygnus.com>
Wed, 1 Jul 1998 22:28:06 +0000 (22:28 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 1 Jul 1998 22:28:06 +0000 (15:28 -0700)
* xcoffout.c (xcoffout_begin_function): Call xcoffout_block for
the zero'th block.

From-SVN: r20882

gcc/ChangeLog
gcc/xcoffout.c

index 3724b4886707e8880e9cbf1f289ba1f844173076..2ddab527cd19e5a924f7802332c155f9270e85e2 100644 (file)
@@ -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.
index ebbd9c6c4ff960ff43b1e0b4238553325bf8da02..baa0cd2ed0177ec3acb1054e3a8598d0c429ba90 100644 (file)
@@ -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);
 }
 
This page took 0.068547 seconds and 5 git commands to generate.