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

--- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> ---

> It's also helpful to include the cc1plus invocation from g++ -v; that includes
> all you need to reproduce.

The full one is

cc1plus -fpreprocessed qv4qobjectwrapper.cpp.ii -mptr64 -mstack-bias
-mno-v8plus -quiet -m64 -mcpu=v9 -g -O2 -std=c++17 -version -flto=auto
-ffat-lto-objects -fstack-protector-strong -fPIC -fvisibility=hidden
-fvisibility-inlines-hidden -fno-exceptions -o qv4qobjectwrapper.cpp.s

With the original testcase and cc1plus from the gcc-13 branch, this can
be reduced to

cc1plus -fpreprocessed qv4qobjectwrapper.cpp.ii -mptr64 -mstack-bias
-mno-v8plus -quiet -m64 -mcpu=v9 -O2 -fno-exceptions -o qv4qobjectwrapper.cpp.s

while without -fno-exceptions the test compiles in this configuration.

Fortunately, I managed to reduce the testcase as attached, which SEGVs
even without -fno-exceptions.

On trunk, the original testcase compiles without issues, while the
reduced one SEGVs since gcc-8 (didn't try before) up to trunk.

Reply via email to