Re: [PATCH 1/1] nds32: Fix gcc 8.0 compiler option incompatible.
Nickhu 於 2018年10月18日 週四 下午4:38寫道: > > When the kernel configs of ftrace and frame pointer options are > choosed, the compiler option of kernel will incompatible. > Error message: > nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are > incompatible > > Signed-off-by: Nickhu > Signed-off-by: Zong Li > --- > arch/nds32/mm/Makefile | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/arch/nds32/mm/Makefile b/arch/nds32/mm/Makefile > index 6b6855852223..7c5c15ad854a 100644 > --- a/arch/nds32/mm/Makefile > +++ b/arch/nds32/mm/Makefile > @@ -4,4 +4,8 @@ obj-y := extable.o tlb.o \ > > obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o > obj-$(CONFIG_HIGHMEM) += highmem.o > -CFLAGS_proc-n13.o += -fomit-frame-pointer > + > +ifdef CONFIG_FUNCTION_TRACER > +CFLAGS_REMOVE_proc.o = $(CC_FLAGS_FTRACE) > +endif > +CFLAGS_proc.o += -fomit-frame-pointer Hi Nick, Thanks. Acked-by: Greentime Hu
Re: [PATCH 1/1] nds32: Fix gcc 8.0 compiler option incompatible.
Nickhu 於 2018年10月18日 週四 下午4:38寫道: > > When the kernel configs of ftrace and frame pointer options are > choosed, the compiler option of kernel will incompatible. > Error message: > nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are > incompatible > > Signed-off-by: Nickhu > Signed-off-by: Zong Li > --- > arch/nds32/mm/Makefile | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/arch/nds32/mm/Makefile b/arch/nds32/mm/Makefile > index 6b6855852223..7c5c15ad854a 100644 > --- a/arch/nds32/mm/Makefile > +++ b/arch/nds32/mm/Makefile > @@ -4,4 +4,8 @@ obj-y := extable.o tlb.o \ > > obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o > obj-$(CONFIG_HIGHMEM) += highmem.o > -CFLAGS_proc-n13.o += -fomit-frame-pointer > + > +ifdef CONFIG_FUNCTION_TRACER > +CFLAGS_REMOVE_proc.o = $(CC_FLAGS_FTRACE) > +endif > +CFLAGS_proc.o += -fomit-frame-pointer Hi Nick, Thanks. Acked-by: Greentime Hu
[PATCH 1/1] nds32: Fix gcc 8.0 compiler option incompatible.
When the kernel configs of ftrace and frame pointer options are choosed, the compiler option of kernel will incompatible. Error message: nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are incompatible Signed-off-by: Nickhu Signed-off-by: Zong Li --- arch/nds32/mm/Makefile | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/nds32/mm/Makefile b/arch/nds32/mm/Makefile index 6b6855852223..7c5c15ad854a 100644 --- a/arch/nds32/mm/Makefile +++ b/arch/nds32/mm/Makefile @@ -4,4 +4,8 @@ obj-y := extable.o tlb.o \ obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o obj-$(CONFIG_HIGHMEM) += highmem.o -CFLAGS_proc-n13.o += -fomit-frame-pointer + +ifdef CONFIG_FUNCTION_TRACER +CFLAGS_REMOVE_proc.o = $(CC_FLAGS_FTRACE) +endif +CFLAGS_proc.o += -fomit-frame-pointer -- 2.17.0
[PATCH 1/1] nds32: Fix gcc 8.0 compiler option incompatible.
When the kernel configs of ftrace and frame pointer options are choosed, the compiler option of kernel will incompatible. Error message: nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are incompatible Signed-off-by: Nickhu Signed-off-by: Zong Li --- arch/nds32/mm/Makefile | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/nds32/mm/Makefile b/arch/nds32/mm/Makefile index 6b6855852223..7c5c15ad854a 100644 --- a/arch/nds32/mm/Makefile +++ b/arch/nds32/mm/Makefile @@ -4,4 +4,8 @@ obj-y := extable.o tlb.o \ obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o obj-$(CONFIG_HIGHMEM) += highmem.o -CFLAGS_proc-n13.o += -fomit-frame-pointer + +ifdef CONFIG_FUNCTION_TRACER +CFLAGS_REMOVE_proc.o = $(CC_FLAGS_FTRACE) +endif +CFLAGS_proc.o += -fomit-frame-pointer -- 2.17.0