diff options
Diffstat (limited to '')
-rw-r--r-- | make/ChangeLog | 5 | ||||
-rw-r--r-- | make/custom/pc386.cfg | 4 | ||||
-rw-r--r-- | make/custom/pc386dx.cfg | 2 | ||||
-rw-r--r-- | make/leaf.cfg | 36 |
4 files changed, 45 insertions, 2 deletions
diff --git a/make/ChangeLog b/make/ChangeLog index 165543759f..cd9b6bf2c4 100644 --- a/make/ChangeLog +++ b/make/ChangeLog @@ -1,3 +1,8 @@ +2008-03-12 Joel Sherrill <joel.sherrill@oarcorp.com> + + * leaf.cfg, custom/pc386.cfg, custom/pc386dx.cfg: It appears that the + default processor model optimization has changed in gcc 4.3.0. + 2008-03-11 Joel Sherrill <joel.sherrill@OARcorp.com> * custom/av5282.cfg, custom/bare.cfg, custom/default.cfg, 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 diff --git a/make/leaf.cfg b/make/leaf.cfg index 497fb53a06..ca6b7d0009 100644 --- a/make/leaf.cfg +++ b/make/leaf.cfg @@ -109,3 +109,39 @@ clean: clean-am .PHONY: distclean distclean-am .PHONY: clean clean-am endif + +## what to do about $(EXEEXT) --> $(EXEEXT) +## -o $(basename $@)$(EXEEXT) OR +## -o $(basename $@)$(EXEEXT) OR + +DOWNEXT=.ralf + +define bsp-link-c + $(LINK.c) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ + -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS) +endef + +define bsp-link-cxx + $(LINK.cc) $(CPU_CFLAGS) $(AM_CFLAGS) $(AM_LDFLAGS) \ + -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS) +endef + +define default-bsp-post-link + $(NM) -g -n $@ > $(basename $@).num + $(SIZE) $@ +endef + +define bsp-post-link + $(default-bsp-post-link) + cp $(basename $@).exe $(basename $@)$(DOWNEXT) +endef + +define make-exe + $(bsp-link-c) + $(bsp-post-link) +endef + +define make-cxx-exe + $(bsp-link-cxx) + $(bsp-post-link) +endef |