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

--- Comment #4 from Senthil Kumar Selvaraj <senthil_kumar.selvaraj at atmel dot 
com> 2012-08-10 10:39:32 UTC ---
(In reply to comment #1)
> 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?

Yes, it does. Doesn't change the code generated though - the initial copy is
still at a different frame offset.

(In reply to comment #1)
> 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?

(In reply to comment #1)
> 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?

Reply via email to