All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] nds32: Fix gcc 8.0 compiler option incompatible.
@ 2018-10-18  8:37 Nickhu
  2018-10-18  8:37 ` [PATCH 1/1] " Nickhu
  0 siblings, 1 reply; 3+ messages in thread
From: Nickhu @ 2018-10-18  8:37 UTC (permalink / raw)
  To: greentime, linux-kernel, arnd, zong, deanbo422; +Cc: Nickhu, green.hu

Fix gcc 8.0 compiler option incompatible When the kernel configs of
ftrace and frame pointer options are choosed.

Nickhu (1):
  nds32: Fix gcc 8.0 compiler option incompatible.

 arch/nds32/mm/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
2.17.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] nds32: Fix gcc 8.0 compiler option incompatible.
  2018-10-18  8:37 [PATCH 0/1] nds32: Fix gcc 8.0 compiler option incompatible Nickhu
@ 2018-10-18  8:37 ` Nickhu
  2018-10-19  9:24   ` Greentime Hu
  0 siblings, 1 reply; 3+ messages in thread
From: Nickhu @ 2018-10-18  8:37 UTC (permalink / raw)
  To: greentime, linux-kernel, arnd, zong, deanbo422; +Cc: Nickhu, green.hu

	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 <nickhu@andestech.com>
Signed-off-by: Zong Li <zong@andestech.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] nds32: Fix gcc 8.0 compiler option incompatible.
  2018-10-18  8:37 ` [PATCH 1/1] " Nickhu
@ 2018-10-19  9:24   ` Greentime Hu
  0 siblings, 0 replies; 3+ messages in thread
From: Greentime Hu @ 2018-10-19  9:24 UTC (permalink / raw)
  To: Nickhu
  Cc: Greentime, Linux Kernel Mailing List, Arnd Bergmann, Zong Li,
	Vincent Chen

Nickhu <nickhu@andestech.com> 於 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 <nickhu@andestech.com>
> Signed-off-by: Zong Li <zong@andestech.com>
> ---
>  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 <greentime@andestech.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-19  9:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-18  8:37 [PATCH 0/1] nds32: Fix gcc 8.0 compiler option incompatible Nickhu
2018-10-18  8:37 ` [PATCH 1/1] " Nickhu
2018-10-19  9:24   ` Greentime Hu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.