mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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.
This commit is contained in:
@@ -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>
|
2008-03-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* custom/av5282.cfg, custom/bare.cfg, custom/default.cfg,
|
* custom/av5282.cfg, custom/bare.cfg, custom/default.cfg,
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ RTEMS_BSP_FAMILY=pc386
|
|||||||
# and (hopefully) optimize for it.
|
# and (hopefully) optimize for it.
|
||||||
#
|
#
|
||||||
# NOTE: CPU_CFLAGS is set by pc386 variants.
|
# NOTE: CPU_CFLAGS is set by pc386 variants.
|
||||||
# CPU_CFLAGS =
|
ifeq ($(CPU_CFLAGS),)
|
||||||
|
CPU_CFLAGS = -mtune=i386
|
||||||
|
endif
|
||||||
|
|
||||||
# optimize flag: typically -O2
|
# optimize flag: typically -O2
|
||||||
CFLAGS_OPTIMIZE_V = -O2 -g
|
CFLAGS_OPTIMIZE_V = -O2 -g
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ RTEMS_CPU_MODEL=i386dx
|
|||||||
|
|
||||||
# This contains the compiler options necessary to select the CPU model
|
# This contains the compiler options necessary to select the CPU model
|
||||||
# and (hopefully) optimize for it.
|
# 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
|
include $(RTEMS_ROOT)/make/custom/pc386.cfg
|
||||||
|
|
||||||
|
|||||||
@@ -109,3 +109,39 @@ clean: clean-am
|
|||||||
.PHONY: distclean distclean-am
|
.PHONY: distclean distclean-am
|
||||||
.PHONY: clean clean-am
|
.PHONY: clean clean-am
|
||||||
endif
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user