This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32412] Passing struct as parameter breaks SRA for stack-allocated struct inside called function
- From: "scovich at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2007 18:22:44 -0000
- Subject: [Bug middle-end/32412] Passing struct as parameter breaks SRA for stack-allocated struct inside called function
- References: <bug-32412-14600@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from scovich at gmail dot com 2007-06-20 18:22 -------
(In reply to comment #1)
Sorry for the double post, but I just tried creating a wrapper_foo() that
copies the values out of the struct, then passes them on to foo() as scalars.
The problem only appears if foo() gets inlined into wrapper_foo().
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32412