------- Comment #13 from jh at suse dot cz  2005-10-18 18:29 -------
Subject: Re:  ix86 prologue clobbers memory when it shouldn't

> 
> 
> ------- Comment #12 from hjl at lucon dot org  2005-10-18 18:26 -------
> There is another issue when converting stack additions to pop:
> 
> (define_peephole2
>   [(match_scratch:SI 0 "r")
>    (parallel [(set (reg:SI SP_REG) (plus:SI (reg:SI SP_REG) (const_int 4)))   
>  
>           (clobber (reg:CC FLAGS_REG))])]
>   ""
>   [(parallel [(set (match_dup 0) (mem:SI (reg:SI SP_REG)))
>               (set (reg:SI SP_REG) (plus:SI (reg:SI SP_REG) (const_int 4)))])]
>   "")
> 
> Is that 100% safe with red zone? In theory, compiler can adjust stack, but not
> clobber memory since there is a red zone.

It is reading memory here, not writting so it should be safe...

Honza
> 
> 
> -- 
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24419
> 
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.


-- 


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

Reply via email to