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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #4)
> For riscv cross compilers you need to invoke the driver since that feeds
> -mabi and -march to cc1plus required to identify the target as 64bit ...
> 
> That would be -march=rv64imafdc_zicsr_zifencei -mabi=lp64d for example.

Err, forget that.  The testcase is for a x86_64 compiler, but you need
-fno-exceptions -fno-rtti -O2 to reproduce the GCC case exactly (it also
works with plain -O2).

So, this is in _building_ a x86_64 -> riscv cross (not using it).

Reply via email to