[PATCH] powerpc/Makefile: Remove bits related to the previous use of -mcmodel=large

Segher Boessenkool segher at kernel.crashing.org
Wed Jan 10 05:39:36 AEDT 2024


On Tue, Jan 09, 2024 at 03:15:35PM +0000, Christophe Leroy wrote:
> >   CFLAGS-$(CONFIG_PPC64)	+= $(call cc-option,-mcall-aixdesc)
> >   endif
> >   endif
> > -CFLAGS-$(CONFIG_PPC64)	+= $(call cc-option,-mcmodel=medium,$(call cc-option,-mminimal-toc))
> > +CFLAGS-$(CONFIG_PPC64)	+= $(call cc-option,-mcmodel=medium)
> 
> Should we still use $(call cc-option  here ?
> As we only deal with medium model now, shouldn't we make it such that it 
> fails in case the compiler doesn't support -mcmodel=medium ?

The -mcmodel= flag has been supported since 2010.  The kernel requires
a GCC from 2015 or later (GCC 5.1 is the minimum).  -mcmodel=medium is
(and always has been) the default, so it is always supported, yes.


Segher


More information about the Linuxppc-dev mailing list