lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNASMRwn+jmW2kuc9iejou9_mevAaQhb7DAuYK9KDzU2L1A@mail.gmail.com>
Date:   Wed, 17 Aug 2022 23:45:06 +0900
From:   Masahiro Yamada <masahiroy@...nel.org>
To:     Jiri Slaby <jslaby@...e.cz>
Cc:     Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Michal Marek <michal.lkml@...kovi.net>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Subject: Re: [PATCH] kbuild: dummy-tools: pretend we understand __LONG_DOUBLE_128__

On Wed, Aug 10, 2022 at 6:26 PM Jiri Slaby <jslaby@...e.cz> wrote:
>
> There is a test in powerpc's Kconfig which checks __LONG_DOUBLE_128__
> and sets CONFIG_PPC_LONG_DOUBLE_128 if it is understood by the compiler.
>
> We currently don't handle it, so this results in PPC_LONG_DOUBLE_128 not
> being in super-config generated by dummy-tools. So take this into
> account in the gcc script and preprocess __LONG_DOUBLE_128__ as "1".
>
> Cc: Masahiro Yamada <masahiroy@...nel.org>
> Cc: Michal Marek <michal.lkml@...kovi.net>
> Cc: Nick Desaulniers <ndesaulniers@...gle.com>
> Cc: linux-kbuild@...r.kernel.org
> Signed-off-by: Jiri Slaby <jslaby@...e.cz>


Applied to linux-kbuild/fixes. Thanks.

> ---
>  scripts/dummy-tools/gcc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc
> index 7db825843435..1db1889f6d81 100755
> --- a/scripts/dummy-tools/gcc
> +++ b/scripts/dummy-tools/gcc
> @@ -59,7 +59,7 @@ fi
>  if arg_contain -E "$@"; then
>         # For scripts/cc-version.sh; This emulates GCC 20.0.0
>         if arg_contain - "$@"; then
> -               sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}'
> +               sed -n '/^GCC/{s/__GNUC__/20/; s/__GNUC_MINOR__/0/; s/__GNUC_PATCHLEVEL__/0/; p;}; s/__LONG_DOUBLE_128__/1/ p'
>                 exit 0
>         else
>                 echo "no input files" >&2
> --
> 2.37.1
>


-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ