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

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jeevitha from comment #5)
> Able to reproduce the error with a simple test case using the following
> compilation and linking commands. The issue occurs whenever we pass
> different ABIs during compilation and linking.

> /home/jeevitha/gcc_clean/build_gcc/nb_gcc_106438/./gcc/xgcc
> -B/home/jeevitha/gcc_clean/build_gcc/nb_gcc_106438/./gcc/  -c t.c
> -mabi=ieeelongdouble -O3  -o t.o -flto
> [jeevitha@ltcden2-lp1 nb_gcc_106438]$
> /home/jeevitha/gcc_clean/build_gcc/nb_gcc_106438/./gcc/xgcc
> -B/home/jeevitha/gcc_clean/build_gcc/nb_gcc_106438/./gcc/  -flto t.o 
> -mabi=ibmlongdouble -o t.out

That is NOT valid to do. As you are changing the ABI at link time vs what was
done at compile time.


As far as the original ICE. Maybe it has the same issue ... Still looking into
it.

Reply via email to