This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/69008] gcc emits unneeded memory access when passing trivial structs by value (ARM)


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

--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to Marc Mutz from comment #5)
> Why is this only "missed-optimization"? Don't these architecture's ABIs
> stipulate passing in registers, as well as the Itanium ABI? So why is this
> not a platform ABI conformance issue?

There's no conformance issue because the value is passed in registers.  It's
just redundantly copied onto the stack first (and then off again).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]