http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42375
Martin Jambor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
--- Comment #4 from jamborm at gcc dot gnu dot org 2009-12-22 14:26 ---
(In reply to comment #3)
>
> on i686 (or with -m32) this does not happen - Martin, any idea why?
>
I had to examine the testcase to find out. It turns out that on i686
is_va_list_type() returns true for this type
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-12-15 13:35 ---
This is a bug in the test. Early inter-procedural SRA avoids passing array by
reference in the recurse() function and instead passes the first element
which is the only one read. Thus the function is optimized to
a