[Kos-cvs] kos ChangeLog,1.43,1.44 MkVars,1.110,1.111

thomas at kos.enix.org thomas at kos.enix.org
Tue Dec 28 20:35:00 CET 2004


Update of /home/kos/cvs/kos
In directory the-doors:/tmp/cvs-serv13805

Modified Files:
	ChangeLog MkVars 
Log Message:
2004-12-28  Thomas Petazzoni  <thomas at crazy.kos.nx>

	* MkVars (MY_DEBUG_LEVEL): Gcc 3.4.x does not like statements
	like "#if (DEBUG_LEVEL == 0)" when DEBUG_LEVEL is NULL. So, when
	there is no defined DEBUG_LEVEL in a module Makefile, we make sure
	that DEBUG_LEVEL defaults to 0 inside MkVars.



Index: MkVars
===================================================================
RCS file: /home/kos/cvs/kos/MkVars,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- MkVars	28 Dec 2004 18:44:08 -0000	1.110
+++ MkVars	28 Dec 2004 19:34:57 -0000	1.111
@@ -44,11 +44,20 @@
 # Compilation flags
 #
 
+# If DEBUG_LEVEL is not defined, make sure it defaults to 0. Gcc 3.4.x
+# does not like CPP statements like "#if (DEBUG_LEVEL == 0)" if
+# DEBUG_LEVEL is NULL.
+ifeq ($(DEBUG_LEVEL),)
+MY_DEBUG_LEVEL=0
+else
+MY_DEBUG_LEVEL=$(DEBUG_LEVEL)
+endif
+
 CFLAGS +=  -Wall -O2 # -g
 CFLAGS += -ffreestanding -W -Wundef -Wshadow -Wpointer-arith		\
           -Wcast-align -Wsign-compare					\
 	  -Waggregate-return -Wmissing-prototypes -Wredundant-decls	\
-          -Wnested-externs -DDEBUG_LEVEL=$(DEBUG_LEVEL)
+          -Wnested-externs -DDEBUG_LEVEL=$(MY_DEBUG_LEVEL)
 #          -fomit-frame-pointer #Don't use this unless you don't want backtrace
 CXXFLAGS += -Wall -O2 -Woverloaded-virtual -Wsynth -nostdinc++ -fno-rtti -fno-exceptions
 

Index: ChangeLog
===================================================================
RCS file: /home/kos/cvs/kos/ChangeLog,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- ChangeLog	28 Dec 2004 18:44:08 -0000	1.43
+++ ChangeLog	28 Dec 2004 19:34:57 -0000	1.44
@@ -1,5 +1,10 @@
 2004-12-28  Thomas Petazzoni  <thomas at crazy.kos.nx>
 
+	* MkVars (MY_DEBUG_LEVEL): Gcc 3.4.x does not like statements
+	like "#if (DEBUG_LEVEL == 0)" when DEBUG_LEVEL is NULL. So, when
+	there is no defined DEBUG_LEVEL in a module Makefile, we make sure
+	that DEBUG_LEVEL defaults to 0 inside MkVars.
+
 	* modules/x86/task/task.c: Try to restrict access to exported
 	symbol.
 



More information about the Kos-cvs mailing list