[Bug middle-end/32412] Passing struct as parameter breaks SRA for stack-allocated struct inside called function

2012-01-18 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32412 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug middle-end/32412] Passing struct as parameter breaks SRA for stack-allocated struct inside called function

2007-06-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-06-20 12:57 --- wrapper const w You are passing via reference which does not break SRA, just changes the ABI and such. This is a very very hard problem to solve without the whole program. I wondering if I should close it as

[Bug middle-end/32412] Passing struct as parameter breaks SRA for stack-allocated struct inside called function

2007-06-20 Thread scovich at gmail dot com
--- Comment #2 from scovich at gmail dot com 2007-06-20 17:49 --- (In reply to comment #1) wrapper const w You are passing via reference which does not break SRA, just changes the ABI and such. This is a very very hard problem to solve without the whole program. I wondering

[Bug middle-end/32412] Passing struct as parameter breaks SRA for stack-allocated struct inside called function

2007-06-20 Thread scovich at gmail dot com
--- 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