c++7459: Missing '*' in unwind-dw2.c ?

Wolfgang Bangerth bangerth@ticam.utexas.edu
Wed Oct 30 15:17:00 GMT 2002


Jason, 
you may be the wrong person to contact, but you are listed the most often 
with non-trivial changes in the logfiles of unwind-dw2.c. Could you please 
take a look at c++/7459 (I attach the text of it below for convenience), 
or forward this report to someone who has knowledge about? I have no clue 
what this report is about, but it seems like an easy fix (or an easy 
"close").

Regards
  Wolfgang

Here's how it goes:
> 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.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth




More information about the Gcc-bugs mailing list