Article View: gnu.gcc.bug
Article #2541dbxout_block in gcc-1.34 for sun386i
From: Admin
Date: Mon, 17 Apr 1989 16:09
Date: Mon, 17 Apr 1989 16:09
50 lines
1735 bytes
1735 bytes
The label references by .stab lines for N_LBRAC and N_RBRAC have no
period whereas they have one inside functions. On the sun386, it
doesn't produce an unresolved symbol error in AS but the symbols are
set to zero and gdb can't use them.
Here is a ``ad hoc'' patch I made:
*** dbxout.c.~1~ Sat Mar 4 14:39:52 1989
--- dbxout.c Mon Apr 17 17:45:29 1989
***************
*** 190,195 ****
--- 190,199 ----
"\t.stabs \"%s\",%d,0,0,Ltext\nLtext:\n",
input_file_name, N_SO);
+ #ifdef sun386
+ fprintf (asmfile, "gcc_compiled.:\n");
+ #endif
+
next_type_number = 1;
next_block_number = 2;
***************
*** 1090,1096 ****
--- 1094,1104 ----
if (depth > 0)
{
blocknum = next_block_number++;
+ #ifdef sun386
+ fprintf (asmfile, ".stabn %d,0,0,.LBB%d\n", N_LBRAC, blocknum);
+ #else
fprintf (asmfile, ".stabn %d,0,0,LBB%d\n", N_LBRAC, blocknum);
+ #endif
}
/* Output the interior of the block. */
***************
*** 1098,1104 ****
--- 1106,1116 ----
/* Refer to the marker for the end of the block. */
if (depth > 0)
+ #ifdef sun386
+ fprintf (asmfile, ".stabn %d,0,0,.LBE%d\n", N_RBRAC, blocknum);
+ #else
fprintf (asmfile, ".stabn %d,0,0,LBE%d\n", N_RBRAC, blocknum);
+ #endif
}
stmt = TREE_CHAIN (stmt);
}
Technical Details
Message-ID:
<8904171609.AA21029@litp.univ-p6-7.fr>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!daemonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!daemon From: daemon@tut.cis.ohio-state.edu (Admin) Newsgroups: gnu.gcc.bug Subject: dbxout_block in gcc-1.34 for sun386i Message-ID: <8904171609.AA21029@litp.univ-p6-7.fr> Date: 17 Apr 89 16:09:39 GMT Distribution: gnu Organization: GNUs Not Usenet Lines: 50