[Bug c/110789] Internal Compiler Error: Illegal instruction

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 26 06:49:50 GMT 2023


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
If you compile GMP (MPFR and MPC) as part of GCC build rather than seperately,
the build will do the correct thing and not use the "native" options by
default.


You could also configure GMP using --target=none-linux-gnu
--host=none-linux-gnu --build=none-linux-gnu to disable that similar thing
(just as building GMP as part of GCC's build).

>From Makefile.def:
host_modules= { module= gmp; lib_path=.libs; bootstrap=true;
                // Work around in-tree gmp configure bug with missing flex.
                extra_configure_flags='--disable-shared LEX="touch lex.yy.c"
@host_libs_picflag@';
                extra_make_flags='AM_CFLAGS="-DNO_ASM"';
                no_install= true;
                // none-*-* disables asm optimizations, bootstrap-testing
                // the compiler more thoroughly.
                host="none-${host_vendor}-${host_os}";
                // gmp's configure will complain if given anything
                // different from host for target.
                target="none-${host_vendor}-${host_os}"; };


More information about the Gcc-bugs mailing list