This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7459: Missing '*' in unwind-dw2.c ?
- From: mendell at ca dot ibm dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 31 Jul 2002 20:08:42 -0000
- Subject: c++/7459: Missing '*' in unwind-dw2.c ?
- Reply-to: mendell at ca dot ibm dot com
>Number: 7459
>Category: c++
>Synopsis: Missing '*' in unwind-dw2.c ?
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Wed Jul 31 13:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Mark Mendell
>Release: gcc 3.1
>Organization:
>Environment:
Linux/PPC
>Description:
In routine uw_update_context_1, there is code:
switch (fs->regs.reg[i].how)
{
case REG_UNSAVED:
break;
case REG_SAVED_OFFSET:
context->reg[i] = cfa + fs->regs.reg[i].loc.offset;
break;
...
Should the case for REG_SAVED_OFFSET be indirecting the value? It seems that you are saving the address of the value, not the value itself. This is inconsistent with the
other cases in the switch.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: