[Bug bootstrap/70652] [6 Regression] r234966 causes bootstrap to fail

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Apr 14 21:23:00 GMT 2016


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

--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
Created attachment 38274
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38274&action=edit
Patch to replace C++ VLAs with alloca.

For future reference, the attached patch gets around the problem by replacing
C++ VLAs in libjava with __builtin_alloca().  libjava already uses
__builtin_alloca() so the change would be in line with this practice.  At the
same time, libjava contains C++ throw statements so it seems that it must
already link with libsupc++ which provides the required C++ exception support,
including the unresolved __cxa_throw_bad_array_length function, so there may be
a better solution to the problem than replacing the safer VLAs with the unsafe
builtin.


More information about the Gcc-bugs mailing list