]> sourceware.org Git - glibc.git/commit
stdio: Remove the usage of $(fno-unit-at-a-time) for siglist.c
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 7 Apr 2022 20:15:56 +0000 (17:15 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 13 May 2022 13:54:41 +0000 (10:54 -0300)
commit6fad891dfd5236002a2e64e26279c1d6dfa79565
tree6258506ca4e1fd0d9e88a2a0c551984d5e644acd
parent900fa2573671d692ed245f76aa3f05cec462be0c
stdio: Remove the usage of $(fno-unit-at-a-time) for siglist.c

The siglist.c is built with -fno-toplevel-reorder to avoid compiler
to reorder the compat assembly directives due an assembler
issue [1] (fixed on 2.39).

This patch removes the compiler flags by split the compat symbol
generation in two phases.  First the __sys_siglist and __sys_sigabbrev
without any compat symbol directive is preprocessed to generate an
assembly source code.  This generate assembly is then used as input
on a platform agnostic siglist.S which then creates the compat
definitions.  This prevents compiler to move any compat directive
prior the _sys_errlist definition itself.

Checked on a make check run-built-tests=no on all affected ABIs.

Reviewed-by: Fangrui Song <maskray@google.com>
include/signal.h
stdio-common/Makefile
stdio-common/siglist-gen.c [moved from stdio-common/siglist.c with 92% similarity]
stdio-common/siglist.S [new file with mode: 0644]
sysdeps/generic/siglist-compat-def.h [moved from sysdeps/generic/siglist-compat.h with 69% similarity]
sysdeps/generic/siglist-compat.c [deleted file]
sysdeps/mach/hurd/siglist-compat.h [moved from sysdeps/mach/hurd/siglist-compat.c with 86% similarity]
sysdeps/unix/sysv/linux/siglist-compat.h [moved from sysdeps/unix/sysv/linux/siglist-compat.c with 87% similarity]
This page took 0.052635 seconds and 5 git commands to generate.