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

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> I'm trying to upgrade from 3.4.4 to 5.2.0, and I used -freg-struct-return
> for years with 3.4.4 with no issues. Not that there is huge amount of code
> that actually uses functions returning structures, but the project itself is
> about 5Mb of compiled code.

Certainly fascinating.  I have been working on GCC for almost 15 years and did
not see a single mention of the option over these years.  There is not a single
test in the testsuite that exercises it.  When I overhauled the implementation
of the calling conventions in the SPARC back-end for GCC 3.4.x:
  https://gcc.gnu.org/gcc-3.4/sparc-abi.html
I didn't know that it was even existing.  This stuff looks a bit magical...

> On the other hand, I doubt the case I provided works in 5.2.0 by pure
> accident either, and there is some hope a fix for the ICE is rather simple
> for somebody who is familiar with gcc code base.

Admittedly, I'll have a look then.

Reply via email to