Misc generic code changes

Jonathan Larmour jifl@eCosCentric.com
Mon Mar 15 15:27:00 GMT 2004


Jonathan Larmour wrote:
> This is a rather large patch which adds a few bits of (configurable) 
> functionality, some fixes, consistency/correctness changes, as well as 
> easing use with newer GCC and reducing warnings. Much of it doesn't 
> really add much more than future-proofing I'm afraid.

In all fairness, I should highlight this change actually. This implements 
what was discussed on ecos-devel recently, and means that by default eCos 
will no longer build with GCC 2.9x. This is easily worked around by doing:

make OLDGCC=1

but it's a bit of a hack. Unfortunately the only alternative is some sort 
of autoconf detection, which isn't on the horizon. Lesser of two evils I'm 
afraid.

Jifl

> Index: pkgconf/rules.mak
> ===================================================================
> RCS file: /cvs/ecos/ecos/packages/pkgconf/rules.mak,v
> retrieving revision 1.13
> diff -u -5 -p -r1.13 rules.mak
> --- pkgconf/rules.mak	24 Oct 2003 18:27:39 -0000	1.13
> +++ pkgconf/rules.mak	15 Mar 2004 15:04:23 -0000
> @@ -59,15 +59,26 @@ ifneq ($(wildcard *.deps),)
>  include $(wildcard *.deps)
>  endif
>  
>  # GCC since 2.95 does -finit-priority by default so remove it from old HALs
>  CFLAGS := $(subst -finit-priority,,$(CFLAGS))
> +
> +# -fvtable-gc is known to be broken in all recent GCC.
>  CFLAGS := $(subst -fvtable-gc,,$(CFLAGS))
>  
> +# To support more recent GCC whilst preserving existing behaviour, we need
> +# to increase the inlining limit globally from the default 600. Note this
> +# will break GCC 2.95 based tools and earlier. You must use "make OLDGCC=1"
> +# to avoid this.
> +ifneq ($(OLDGCC),1)
> +CFLAGS := -finline-limit=7000 $(CFLAGS)
> +endif
> +
>  # Separate C++ flags out from C flags.
[snip]

-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
 >>>>> Visit us in booth 2527 at the Embedded Systems Conference 2004 <<<<<
March 30 - April 1, San Francisco http://www.esconline.com/electronicaUSA/
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine



More information about the Ecos-patches mailing list