]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARC: Override toplevel default -O2 with -O3
authorVineet Gupta <vgupta@synopsys.com>
Thu, 18 Jun 2015 08:24:01 +0000 (13:54 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Jul 2015 05:39:00 +0000 (11:09 +0530)
commit97709069214eb75312c14946803b9da4d3814203
tree87cf225fae4cec9ed301300ab71f34fe70d9d453
parent61754c18752ffb78145671e94f053fb202fff041
ARC: Override toplevel default -O2 with -O3

ARC kernels have historically been built with -O3, despite top level
Makefile defaulting to -O2. This was facilitated by implicitly ordering
of arch makefile include AFTER top level assigned -O2.

An upstream fix to top level a1c48bb160f ("Makefile: Fix unrecognized
cross-compiler command line options") changed the ordering, making ARC
-O3 defunct.

Fix that by NOT relying on any ordering whatsoever and use the proper
arch override facility now present in kbuild (ARCH_*FLAGS)

Depends-on: ("kbuild: Allow arch Makefiles to override {cpp,ld,c}flags")
Suggested-by: Michal Marek <mmarek@suse.cz>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: stable@vger.kernel.org # 3.16+
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/Makefile