[PATCH,x86,FreeBSD] Update FreeBSD/i386 to i586

Andreas Tobler andreast@FreeBSD.org
Sun Nov 15 18:07:00 GMT 2015


On 15.11.15 10:52, Gerald Pfeifer wrote:
> This is something I had first done and tested a while ago, but
> apparently failed to submit.
>
> It did not show in my running of the testsuite (bootstrap and
> testing without regressions on i386-unknown-freebsd10.1), but
> in some cases the use of i586 instructions actually avoided
> issues for users.  And who is running i486 these days?
>
> (And FreeBSD 5 has been out of support for many years; I guess
> modern versions of GCC won't work there for completely different
> reasons.)
>
> Okay?

Ok.

> And okay for GCC 5 after two weeks or so on trunk?

Ok.

Thank you!

Andreas

> 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
>
> 	* config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
> 	Remove support for FreeBSD 5 and earlier.
>
> Index: gcc/config/i386/freebsd.h
> ===================================================================
> --- gcc/config/i386/freebsd.h	(revision 230394)
> +++ gcc/config/i386/freebsd.h	(working copy)
> @@ -121,10 +121,7 @@
>   /* Static stack checking is supported by means of probes.  */
>   #define STACK_CHECK_STATIC_BUILTIN 1
>
> -/* Support for i386 has been removed from FreeBSD 6.0 onward.  */
> -#if FBSD_MAJOR >= 6
> -#define SUBTARGET32_DEFAULT_CPU "i486"
> -#endif
> +#define SUBTARGET32_DEFAULT_CPU "i586"
>
>   #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
>
>



More information about the Gcc-patches mailing list