Another g++ failure tracked to lazy RTL patch
Mark Mitchell
mark@codesourcery.com
Thu Mar 15 22:33:00 GMT 2001
Fixed with this patch.
Bootstrapped, tested on i686-pc-linux-gnu.
Committed on the branch and mainline.
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2001-03-15 Mark Mitchell <mark@codesourcery.com>
* dwarf2out.c (rtl_for_decl_location): Use DECL_RTL_IF_SET.
Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.242.2.2
diff -c -p -r1.242.2.2 dwarf2out.c
*** dwarf2out.c 2001/02/21 14:56:06 1.242.2.2
--- dwarf2out.c 2001/03/16 06:25:54
*************** rtl_for_decl_location (decl)
*** 8777,8783 ****
gets fixed). */
/* Use DECL_RTL as the "location" unless we find something better. */
! rtl = DECL_RTL (decl);
if (TREE_CODE (decl) == PARM_DECL)
{
--- 8777,8783 ----
gets fixed). */
/* Use DECL_RTL as the "location" unless we find something better. */
! rtl = DECL_RTL_IF_SET (decl);
if (TREE_CODE (decl) == PARM_DECL)
{
Index: testsuite/g++.old-deja/g++.other/debug7.C
===================================================================
RCS file: debug7.C
diff -N debug7.C
*** /dev/null Tue May 5 13:32:27 1998
--- debug7.C Thu Mar 15 22:28:02 2001
***************
*** 0 ****
--- 1,11 ----
+ // Build don't run:
+ // Origin: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
+ // Special g++ Options: -g -O2
+
+ namespace std {
+ const int __stl_chunk_size = 7;
+ };
+
+ int main ()
+ {
+ }
More information about the Gcc-bugs
mailing list