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

george.thomas at atmel dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 7 12:06:00 GMT 2013


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

George Thomas <george.thomas at atmel dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |george.thomas at atmel dot
                   |                            |com

--- Comment #6 from George Thomas <george.thomas at atmel dot com> 2013-01-07 12:06:01 UTC ---
Another alternative thought of for the fix was to,

Make the Parameters to be the default def of the next use. In this case,
the condition mentioned above will not expand the variable.

if (!bitmap_bit_p (SA.partition_has_default_def, i))
  {
    expand_one_var (var, true, true);
    gcc_assert (SA.partition_to_pseudo[i]);
  }



More information about the Gcc-bugs mailing list