[Bug c++/60516] cc1plus crashes compiling a method with a huge struct as argument
mikpelinux at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Mar 16 19:44:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60516
Mikael Pettersson <mikpelinux at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpelinux at gmail dot com
--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
I can reproduce with gcc-4.8.2 crosses targeting x86_64-w64-mingw32 -m32, both
on x86_64-linux and on i686-pc-cygwin. On the Linux host the crash looks like:
pr60516.cc: In member function 'void Bar::foo(huge)':
pr60516.cc:8:5: internal compiler error: Segmentation fault
}
^
0x7d5e8f crash_signal
/tmp/gcc-4.8.2/gcc/toplev.c:332
0x78e831 copy_rtx(rtx_def*)
/tmp/gcc-4.8.2/gcc/rtl.c:235
0x98963e ix86_expand_epilogue(int)
/tmp/gcc-4.8.2/gcc/config/i386/i386.c:11168
0xa1723f gen_epilogue()
/tmp/gcc-4.8.2/gcc/config/i386/i386.md:11858
0x674012 thread_prologue_and_epilogue_insns
/tmp/gcc-4.8.2/gcc/function.c:6458
0x674012 rest_of_handle_thread_prologue_and_epilogue
/tmp/gcc-4.8.2/gcc/function.c:6973
Without -m32 it doesn't crash. gcc-4.7.3 also crashes, but gcc-4.6.1 and 4.5.3
do not.
More information about the Gcc-bugs
mailing list