Re: [PATCH 3/4] m68k: optimize cc-option calls for cpuflags-y

2020-06-29 Thread Geert Uytterhoeven
On Tue, May 26, 2020 at 2:38 PM Masahiro Yamada wrote: > arch/m68k/Makefile computes lots of unneeded cc-option calls. > > For example, if CONFIG_M5441x is not defined, there is not point in > evaluating the following compiler flag. > > cpuflags-$(CONFIG_M5441x) := $(call

Re: [PATCH 3/4] m68k: optimize cc-option calls for cpuflags-y

2020-05-27 Thread Greg Ungerer
On 26/5/20 10:38 pm, Masahiro Yamada wrote: arch/m68k/Makefile computes lots of unneeded cc-option calls. For example, if CONFIG_M5441x is not defined, there is not point in evaluating the following compiler flag. cpuflags-$(CONFIG_M5441x) := $(call cc-option,-mcpu=54455,-mcfv4e) The

[PATCH 3/4] m68k: optimize cc-option calls for cpuflags-y

2020-05-26 Thread Masahiro Yamada
arch/m68k/Makefile computes lots of unneeded cc-option calls. For example, if CONFIG_M5441x is not defined, there is not point in evaluating the following compiler flag. cpuflags-$(CONFIG_M5441x) := $(call cc-option,-mcpu=54455,-mcfv4e) The result is set to cpuflags-, then thrown away.