MFC 198344:

Change gcc to assume a default machine architecture of 486 instead of 386
on "i386".  Doing it in the compiler is deemed to be less fragile then
attempting to provide a default -march setting via bsd.cpu.mk.  FreeBSD
itself has not supported plain 386 CPUs since 5.x.
This commit is contained in:
jhb 2010-01-20 15:13:38 +00:00
parent 30e3d79213
commit 69194299f7

View File

@ -1614,7 +1614,7 @@ override_options (void)
"-mtune=generic instead as appropriate."); "-mtune=generic instead as appropriate.");
if (!ix86_arch_string) if (!ix86_arch_string)
ix86_arch_string = TARGET_64BIT ? "x86-64" : "i386"; ix86_arch_string = TARGET_64BIT ? "x86-64" : "i486";
if (!strcmp (ix86_arch_string, "generic")) if (!strcmp (ix86_arch_string, "generic"))
error ("generic CPU can be used only for -mtune= switch"); error ("generic CPU can be used only for -mtune= switch");
if (!strncmp (ix86_arch_string, "generic", 7)) if (!strncmp (ix86_arch_string, "generic", 7))