[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72nWnFpC5JWv7Z1Fmg9vLoQoMbGG+wwFJm0GW81Pw0Me2w@mail.gmail.com>
Date: Mon, 14 Nov 2022 18:01:10 +0100
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: "Jiri Slaby (SUSE)" <jirislaby@...nel.org>
Cc: linux-kernel@...r.kernel.org, Andi Kleen <andi@...stfloor.org>,
Miguel Ojeda <ojeda@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Martin Liska <mliska@...e.cz>, Jiri Slaby <jslaby@...e.cz>
Subject: Re: [PATCH 37/46] Compiler attributes, lto: disable __flatten with LTO
On Mon, Nov 14, 2022 at 12:45 PM Jiri Slaby (SUSE) <jirislaby@...nel.org> wrote:
>
> +#ifndef CONFIG_LTO_GCC
> # define __flatten __attribute__((flatten))
> +#else
> +/* Causes very large memory use with gcc in LTO mode */
> +# define __flatten
> +#endif
Currently, this header avoids attributes that depend on configuration
options on purpose (see the comment at the top), so it would be best
to move it elsewhere, e.g. `compiler_types.h`.
Though I feel bad about having to move this attribute out since it is
just that config option compared to other more involved bits in
`compiler_types.h`... :(
Cheers,
Miguel
Powered by blists - more mailing lists