Interactions between function inlining and inline assembly

Segher Boessenkool segher@kernel.crashing.org
Tue Jan 14 13:12:00 GMT 2020


On Tue, Jan 14, 2020 at 12:54:10PM +0000, RECOULES Frederic wrote:
> Thank you for the answer.
> 
> Yet, I agree this example has no real meaning, but my question is,
> as v is already an address (global variable), why GCC prefers to
> copy the value pointed by v into the stack and give the new pointer
> rather than just give v directly?

Ah, I see.  The copy is made in gimple already, and the RTL passes cannot
get rid of this.

Could you please file a bug?


Segher



More information about the Gcc-help mailing list