[Bug middle-end/54218] Debug info for function parameters is incorrect when compiled with -O0

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 10 08:54:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54218

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-debug
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-08-10
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-08-10 08:53:46 UTC ---
That's because the actual parameter value is not used:

func (int p)
{
;;   basic block 2, loop depth 0
;;    pred:       ENTRY
  p_1 = 0;
  p_2 = 32;
  return;

Partition 0 (p_1 - 1 2 )


Does -fvar-tracking "fix" it?



More information about the Gcc-bugs mailing list