This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/69008] gcc emits unneeded memory access when passing trivial structs by value (ARM)
- From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Mar 2017 13:24:39 +0000
- Subject: [Bug middle-end/69008] gcc emits unneeded memory access when passing trivial structs by value (ARM)
- Auto-submitted: auto-generated
- References: <bug-69008-4@http.gcc.gnu.org/bugzilla/>
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).