[Olsr-cvs] olsrd-current Makefile.inc, 1.34, 1.35 gcc-warnings, 1.3, 1.4

Bernd Petrovitsch (spam-protected)
Sat Oct 13 16:51:34 CEST 2007


Update of /cvsroot/olsrd/olsrd-current
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26611

Modified Files:
	Makefile.inc gcc-warnings 
Log Message:
* CygWin gcc doesn know -fearly-inlining. So we also check it

Index: gcc-warnings
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/gcc-warnings,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** gcc-warnings	7 Sep 2007 09:07:25 -0000	1.3
--- gcc-warnings	13 Oct 2007 14:51:32 -0000	1.4
***************
*** 12,16 ****
  for param; do
      case "$param" in
!     -W?*) OPTS="$OPTS $param";;
      *)    echo "Ignoring $param" >&2
      esac
--- 12,16 ----
  for param; do
      case "$param" in
!     -[fW]?*) OPTS="$OPTS $param";;
      *)    echo "Ignoring $param" >&2
      esac

Index: Makefile.inc
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/Makefile.inc,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** Makefile.inc	13 Oct 2007 12:47:39 -0000	1.34
--- Makefile.inc	13 Oct 2007 14:51:32 -0000	1.35
***************
*** 47,50 ****
--- 47,54 ----
  WARNINGS +=	-Wdisabled-optimization
  #WARNINGS +=	-Werror
+ WARNINGS +=	-finline-functions-called-once
+ WARNINGS +=	-fearly-inlining
+ # we have small inline functions in src/lq_route.c which should always be inlined
+ WARNINGS +=	-finline-limit=50
  WARNINGS :=	$(shell CC="$(CC)" $(TOPDIR)/gcc-warnings $(WARNINGS))
  endif
***************
*** 53,60 ****
  #CFLAGS +=	-g
  CFLAGS +=	$(EXTRA_CFLAGS)
- CFLAGS +=	-finline-functions-called-once
- CFLAGS +=	-fearly-inlining
- # we have small inline functions in src/lq_route.c which should always be inlined
- CFLAGS +=	-finline-limit=50
  
  # Must be specified along with -lpthread on linux
--- 57,60 ----





More information about the Olsr-cvs mailing list