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

--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> $ cc1plus -m32 -quiet m.x0-m_m2.cpp
> m.x0-m_m2.cpp:111:1: internal compiler error: in simplify_subreg, at
> simplify-rtx.cc:7351
>   111 | }
>       | ^

If one compiles the testcase with a sparcv9-sun-solaris2.11 g++, it
works just fine.  However, the cc1plus invocation is different:

cc1plus -mptr32 -mno-stack-bias -quiet -m32 -mcpu=v9 m.x0-m_m2.cpp

Omitting the -mptr32 lets the ICE resurface.

It seems gm2 omits CC1_SPEC from the cc1/cc1plus invocation in
gcc/m2/m2-link-support.h.

Reply via email to