patsubstfor LOCALVERSION and -fno-omit-frame-pointer
PATCH 1/1 patsubstfor LOCALVERSION and -fno-omit-frame-pointer
(** Sorry, I'm resending this mail. I had written the subject in the
Reply-To field. **)
Hello, I'm attaching two patches for the top Makefile.
The first patch modifies LOCALVERSION definition such taht it uses
patsubst instead of subst to remove surrounding double quotes from CONFIG_LOCALVERSION. This helps syntax-highlighting editors.
The second patch addes -fno-omit-frame-pointer to CFLAGS whenCONFIG_FRAME_POINTER is set. My gcc (gcc-3.3.4 Debian 1:3.3.4-11) automatically turns on -fomit-frame-pointer when -O2 is specified and thus breaks CONFIG_FRAME_POINTER option. I'm not sure if other versions of gcc wouldn't choke with -fno-omit-frame-pointer. My 2.95 (2.95.4) seems to be OK though.
Signature · 1 line
tejun
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/09/12 16:29:12+09:00 [email protected] # Use patsubst instead of subst to remove surrounding double quotes # from CONFIG_LOCALVERSION. This helps syntax-highlighting editors. # # Makefile # 2004/09/12 16:29:06+09:00 [email protected] +1 -1 # Use patsubst instead of subst to remove surrounding double quotes # from CONFIG_LOCALVERSION. This helps syntax-highlighting editors.
#
Makefile +1 -1
@@ -157,7 +157,7 @@ LOCALVERSION = $(subst $(space),, \ $(shell cat /dev/null $(localversion-files)) \ - $(subst ",,$(CONFIG_LOCALVERSION))) + $(patsubst "%",%,$(CONFIG_LOCALVERSION))) KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION)
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/09/12 16:31:46+09:00 [email protected] # Newer gcc versions automatically turns on -fomit-frame-pointer when # -O2 is specified thus breaking CONFIG_FRAME_POINTER option. # Explicitly specifying -fno-omit-frame-pointer fixes it. # # Makefile # 2004/09/12 16:31:40+09:00 [email protected] +3 -1 # Newer gcc versions automatically turns on -fomit-frame-pointer when # -O2 is specified thus breaking CONFIG_FRAME_POINTER option. # Explicitly specifying -fno-omit-frame-pointer fixes it.
#
Makefile +3 -1
@@ -486,7 +486,9 @@ CFLAGS += -O2 endif -ifndef CONFIG_FRAME_POINTER +ifdef CONFIG_FRAME_POINTER +CFLAGS += -fno-omit-frame-pointer +else CFLAGS += -fomit-frame-pointer endif
Quoted 9 lines · Tejun Heo
(** Sorry, I'm resending this mail. I had written the subject in the
Reply-To field. **)Hello, I'm attaching two patches for the top
Makefile.The first patch modifies LOCALVERSION definition such taht it uses
patsubst instead of subst to remove surrounding double quotes fromCONFIG_LOCALVERSION. This helps syntax-highlighting editors.
Quoted 6 lines
The second patch addes -fno-omit-frame-pointer to CFLAGS when
CONFIG_FRAME_POINTERis set. My gcc (gcc-3.3.4 Debian 1:3.3.4-11) automatically turns on -fomit-frame-pointer when -O2 is specified and thus breaksCONFIG_FRAME_POINTERoption. I'm not sure if other versions of gcc wouldn't choke with -fno-omit-frame-pointer. My 2.95 (2.95.4) seems to be OK though.
Applied both.
Next time please send a single patch/mail.
Sam