[Bug middle-end/64974] [SH] Weird expansion of 'expected' operand in atomic_compare_and_swap<mode>

olegendo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 10 21:02:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64974

--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> ---
The problem got slightly worse with r220594.  The dead store to the stack frame
is not eliminated anymore.  Before the memory operands' addresses were loaded
into a reg using 'force_reg', which AFAIK dropped the memory aliasing info. 
Now that 'force_reg' is not used anymore, the dead stores remain.

I don't quite understand how those things are related.



More information about the Gcc-bugs mailing list