Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-04-22 Thread Masahiro Yamada
Hi Christophe, On Tue, Mar 26, 2019 at 3:03 PM Christophe Leroy wrote: > > Hi Masahiro, > > Le 25/03/2019 à 07:44, Masahiro Yamada a écrit : > > Hi Christophe, > > > > > > On Sat, Mar 23, 2019 at 5:27 PM LEROY Christophe > > wrote: > >> > >> Arnd Bergmann a écrit : > >> > >>> On Wed, Mar 20, 20

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-04-18 Thread Ingo Molnar
* Masahiro Yamada wrote: > Commit 60a3cdd06394 ("x86: add optimized inlining") introduced > CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. > > The idea is obviously arch-agnostic although we need some code fixups. > This commit moves the config entry from arch/x86/Kconfig.de

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-25 Thread Christophe Leroy
Hi Masahiro, Le 25/03/2019 à 07:44, Masahiro Yamada a écrit : Hi Christophe, On Sat, Mar 23, 2019 at 5:27 PM LEROY Christophe wrote: Arnd Bergmann a écrit : On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: I've added your patch to my randconfig test setup and will let you know if

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-25 Thread Arnd Bergmann
On Mon, Mar 25, 2019 at 8:55 AM Masahiro Yamada wrote: > > On Mon, Mar 25, 2019 at 4:33 PM Arnd Bergmann wrote: > > > > On Mon, Mar 25, 2019 at 7:11 AM Masahiro Yamada > > wrote: > > > I do not know why to reproduce it, > > > but is "__init __noreturn" more sensible than > > > "__always_inline"

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-25 Thread Arnd Bergmann
On Wed, Mar 20, 2019 at 2:34 PM Arnd Bergmann wrote: > > On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: > > > > I've added your patch to my randconfig test setup and will let you > > know if I see anything noticeable. I'm currently testing clang-arm32, > > clang-arm64 and gcc-x86. > > This

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-25 Thread Masahiro Yamada
On Mon, Mar 25, 2019 at 4:33 PM Arnd Bergmann wrote: > > On Mon, Mar 25, 2019 at 7:11 AM Masahiro Yamada > wrote: > > On Wed, Mar 20, 2019 at 10:34 PM Arnd Bergmann wrote: > > > > > > On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: > > > > > > > > I've added your patch to my randconfig te

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-25 Thread Arnd Bergmann
On Mon, Mar 25, 2019 at 7:11 AM Masahiro Yamada wrote: > On Wed, Mar 20, 2019 at 10:34 PM Arnd Bergmann wrote: > > > > On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: > > > > > > I've added your patch to my randconfig test setup and will let you > > > know if I see anything noticeable. I'm

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-24 Thread Masahiro Yamada
Hi Christophe, On Sat, Mar 23, 2019 at 5:27 PM LEROY Christophe wrote: > > Arnd Bergmann a écrit : > > > On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: > >> > >> I've added your patch to my randconfig test setup and will let you > >> know if I see anything noticeable. I'm currently test

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-24 Thread Masahiro Yamada
Hi Heiko, On Thu, Mar 21, 2019 at 5:02 PM Heiko Carstens wrote: > > On Wed, Mar 20, 2019 at 03:20:27PM +0900, Masahiro Yamada wrote: > > Commit 60a3cdd06394 ("x86: add optimized inlining") introduced > > CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. > > > > The idea is obviou

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-24 Thread Masahiro Yamada
On Mon, Mar 25, 2019 at 3:10 PM Masahiro Yamada wrote: > > Hi Arnd, > > > > > On Wed, Mar 20, 2019 at 10:34 PM Arnd Bergmann wrote: > > > > On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: > > > > > > I've added your patch to my randconfig test setup and will let you > > > know if I see any

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-24 Thread Masahiro Yamada
Hi Arnd, On Wed, Mar 20, 2019 at 10:34 PM Arnd Bergmann wrote: > > On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: > > > > I've added your patch to my randconfig test setup and will let you > > know if I see anything noticeable. I'm currently testing clang-arm32, > > clang-arm64 and gcc

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-24 Thread Masahiro Yamada
Hi Arnd, On Wed, Mar 20, 2019 at 10:05 PM Arnd Bergmann wrote: > > On Wed, Mar 20, 2019 at 11:19 AM Masahiro Yamada > wrote: > > On Wed, Mar 20, 2019 at 6:39 PM Arnd Bergmann wrote: > > > > > > On Wed, Mar 20, 2019 at 7:41 AM Masahiro Yamada > > > wrote: > > > > > > > It is unclear to me ho

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-23 Thread LEROY Christophe
Masahiro Yamada a écrit : Commit 60a3cdd06394 ("x86: add optimized inlining") introduced CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. The idea is obviously arch-agnostic although we need some code fixups. This commit moves the config entry from arch/x86/Kconfig.debug to li

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-23 Thread LEROY Christophe
Arnd Bergmann a écrit : On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: I've added your patch to my randconfig test setup and will let you know if I see anything noticeable. I'm currently testing clang-arm32, clang-arm64 and gcc-x86. This is the only additional bug that has come up s

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-21 Thread Heiko Carstens
On Wed, Mar 20, 2019 at 03:20:27PM +0900, Masahiro Yamada wrote: > Commit 60a3cdd06394 ("x86: add optimized inlining") introduced > CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. > > The idea is obviously arch-agnostic although we need some code fixups. > This commit moves the c

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-20 Thread Arnd Bergmann
On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: > > I've added your patch to my randconfig test setup and will let you > know if I see anything noticeable. I'm currently testing clang-arm32, > clang-arm64 and gcc-x86. This is the only additional bug that has come up so far: `.exit.text' re

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-20 Thread Arnd Bergmann
On Wed, Mar 20, 2019 at 11:19 AM Masahiro Yamada wrote: > On Wed, Mar 20, 2019 at 6:39 PM Arnd Bergmann wrote: > > > > On Wed, Mar 20, 2019 at 7:41 AM Masahiro Yamada > > wrote: > > > > > It is unclear to me how to fix it. > > > That's why I ended up with "depends on !MIPS". > > > > > > > > >

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-20 Thread Masahiro Yamada
Hi Arnd, On Wed, Mar 20, 2019 at 6:39 PM Arnd Bergmann wrote: > > On Wed, Mar 20, 2019 at 7:41 AM Masahiro Yamada > wrote: > > > It is unclear to me how to fix it. > > That's why I ended up with "depends on !MIPS". > > > > > > MODPOST vmlinux.o > > arch/mips/mm/sc-mips.o: In function `mips_sc

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-20 Thread Arnd Bergmann
On Wed, Mar 20, 2019 at 7:21 AM Masahiro Yamada wrote: > > Commit 60a3cdd06394 ("x86: add optimized inlining") introduced > CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. > > The idea is obviously arch-agnostic although we need some code fixups. > This commit moves the config en

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-20 Thread Arnd Bergmann
On Wed, Mar 20, 2019 at 7:41 AM Masahiro Yamada wrote: > It is unclear to me how to fix it. > That's why I ended up with "depends on !MIPS". > > > MODPOST vmlinux.o > arch/mips/mm/sc-mips.o: In function `mips_sc_prefetch_enable.part.2': > sc-mips.c:(.text+0x98): undefined reference to `mips_gcr

Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-19 Thread Masahiro Yamada
On Wed, Mar 20, 2019 at 3:21 PM Masahiro Yamada wrote: > > Commit 60a3cdd06394 ("x86: add optimized inlining") introduced > CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. > > The idea is obviously arch-agnostic although we need some code fixups. > This commit moves the config en

[PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-03-19 Thread Masahiro Yamada
Commit 60a3cdd06394 ("x86: add optimized inlining") introduced CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. The idea is obviously arch-agnostic although we need some code fixups. This commit moves the config entry from arch/x86/Kconfig.debug to lib/Kconfig.debug so that all ar