This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
DW_CFA_undefined, DW_CFA_same_value (should be g++/9076)
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Date: Tue, 7 Jan 2003 13:56:54 -0600
- Subject: DW_CFA_undefined, DW_CFA_same_value (should be g++/9076)
This is from GNATS. It's incorrectly listed as a libstdc++ bug.
The patch is straightforward, with more details are in the GNATS report.
tested x86/linux
ok for
gcc
gcc-3_3-branch
gcc-3_2-branch
?
-benjamin
2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
Sunil Davasam <sunil.k.davasam@intel.com>
PR libstdc++/9076
* unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
DW_CFA_same_value, read next and ignore.
Index: unwind-dw2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/unwind-dw2.c,v
retrieving revision 1.23
diff -c -p -r1.23 unwind-dw2.c
*** unwind-dw2.c 16 Dec 2002 18:20:01 -0000 1.23
--- unwind-dw2.c 7 Jan 2003 19:43:41 -0000
***************
*** 1,5 ****
/* DWARF2 exception handling and frame unwind runtime interface routines.
! Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This file is part of GCC.
--- 1,5 ----
/* DWARF2 exception handling and frame unwind runtime interface routines.
! Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc.
This file is part of GCC.
*************** execute_cfa_program (const unsigned char
*** 784,789 ****
--- 784,792 ----
case DW_CFA_undefined:
case DW_CFA_same_value:
+ insn_ptr = read_uleb128 (insn_ptr, ®);
+ break;
+
case DW_CFA_nop:
break;