[Bug middle-end/86715] ICE passing too large argument on stack
segher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 27 16:28:27 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86715
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
"struct Matrix" is over 2GB big. The whole stack is just a few megabytes
typically. Passing "struct Matrix" on the stack is entirely unreasonable.
The comment right before this sorry() is
/* We don't allow passing huge (> 2^30 B) arguments
by value. It would cause an overflow later on. */
and this is in generic code.
Closing as WONTFIX. Sorry.
More information about the Gcc-bugs
mailing list