From 66a9381db479909abebd6eb0e92cc7d9ac58ee01 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 12 Mar 2008 15:24:46 +0000 Subject: 2008-03-12 Joel Sherrill * leaf.cfg, custom/pc386.cfg, custom/pc386dx.cfg: It appears that the default processor model optimization has changed in gcc 4.3.0. --- make/custom/pc386.cfg | 4 +++- make/custom/pc386dx.cfg | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'make/custom') diff --git a/make/custom/pc386.cfg b/make/custom/pc386.cfg index 490428bb56..4be98089d5 100644 --- a/make/custom/pc386.cfg +++ b/make/custom/pc386.cfg @@ -18,7 +18,9 @@ RTEMS_BSP_FAMILY=pc386 # and (hopefully) optimize for it. # # NOTE: CPU_CFLAGS is set by pc386 variants. -# CPU_CFLAGS = +ifeq ($(CPU_CFLAGS),) + CPU_CFLAGS = -mtune=i386 +endif # optimize flag: typically -O2 CFLAGS_OPTIMIZE_V = -O2 -g diff --git a/make/custom/pc386dx.cfg b/make/custom/pc386dx.cfg index 2268eaecb2..df0fc15d10 100644 --- a/make/custom/pc386dx.cfg +++ b/make/custom/pc386dx.cfg @@ -8,7 +8,7 @@ RTEMS_CPU_MODEL=i386dx # This contains the compiler options necessary to select the CPU model # and (hopefully) optimize for it. -CPU_CFLAGS = -msoft-float -mno-fp-ret-in-387 +CPU_CFLAGS = -mtune=i386 -msoft-float -mno-fp-ret-in-387 include $(RTEMS_ROOT)/make/custom/pc386.cfg -- cgit v1.2.3