public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Remove fno_unit_at_a_time configure check
@ 2022-05-12 12:59 Adhemerval Zanella
  2022-05-12 12:59 ` [PATCH v2 1/4] Add declare_object_symbol_alias for assembly codes (BZ #28128) Adhemerval Zanella
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2022-05-12 12:59 UTC (permalink / raw)
  To: libc-alpha, Fangrui Song

Both siglist.c and errlist.c require gcc -fno-toplevel-reorder option
to avoid compiler to reorder the compat assembly directives due a
assembler issue [1] (fixed on binutils 2.39).

This patchset removes the flag requirement by reorganizing how the
compat symbols are created: an intermediary compiler assembly with
just the data definition is used as input to another source file
that actually creates the compat symbols.  This prevents compiler to
move any compat directive prior the _sys_errlist_internal
definition itself.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=29012

Adhemerval Zanella (3):
  stdio: Remove the usage of $(fno-unit-at-a-time) for errlist.c
  stdio: Remove the usage of $(fno-unit-at-a-time) for siglist.c
  Remove configure fno_unit_at_a_time

H.J. Lu (1):
  Add declare_object_symbol_alias for assembly codes (BZ #28128)

 Makeconfig                                    |  3 +-
 config.make.in                                |  1 -
 configure                                     | 32 -----------------
 configure.ac                                  | 19 -----------
 include/libc-symbols.h                        | 14 ++++----
 include/signal.h                              |  6 ++--
 include/stdio.h                               |  1 +
 stdio-common/Makefile                         | 34 +++++++++++++++++--
 stdio-common/err_map.h                        | 24 +++++++++++++
 stdio-common/errlist-compat-data.h            |  1 +
 stdio-common/errlist-compat.c                 |  1 -
 stdio-common/errlist-data-gen.c               | 34 +++++++++++++++++++
 stdio-common/errlist-data.S                   |  7 ++++
 stdio-common/errlist.c                        | 20 +++--------
 stdio-common/{siglist.c => siglist-gen.c}     |  4 ---
 stdio-common/siglist.S                        |  7 ++++
 ...{siglist-compat.h => siglist-compat-def.h} | 27 ++++++++-------
 sysdeps/generic/siglist-compat.c              |  1 -
 sysdeps/mach/hurd/{errlist.c => err_map.h}    |  9 +++--
 .../{siglist-compat.c => siglist-compat.h}    |  7 ++--
 ...errlist-compat.c => errlist-compat-data.h} |  0
 ...errlist-compat.c => errlist-compat-data.h} |  0
 sysdeps/unix/sysv/linux/errlist-compat.h      | 33 +++++++++++-------
 ...errlist-compat.c => errlist-compat-data.h} |  0
 ...errlist-compat.c => errlist-compat-data.h} |  0
 .../{siglist-compat.c => siglist-compat.h}    |  7 ++--
 ...errlist-compat.c => errlist-compat-data.h} |  0
 27 files changed, 175 insertions(+), 117 deletions(-)
 create mode 100644 stdio-common/err_map.h
 create mode 100644 stdio-common/errlist-compat-data.h
 delete mode 100644 stdio-common/errlist-compat.c
 create mode 100644 stdio-common/errlist-data-gen.c
 create mode 100644 stdio-common/errlist-data.S
 rename stdio-common/{siglist.c => siglist-gen.c} (92%)
 create mode 100644 stdio-common/siglist.S
 rename sysdeps/generic/{siglist-compat.h => siglist-compat-def.h} (69%)
 delete mode 100644 sysdeps/generic/siglist-compat.c
 rename sysdeps/mach/hurd/{errlist.c => err_map.h} (83%)
 rename sysdeps/mach/hurd/{siglist-compat.c => siglist-compat.h} (86%)
 rename sysdeps/unix/sysv/linux/alpha/{errlist-compat.c => errlist-compat-data.h} (100%)
 rename sysdeps/unix/sysv/linux/{errlist-compat.c => errlist-compat-data.h} (100%)
 rename sysdeps/unix/sysv/linux/hppa/{errlist-compat.c => errlist-compat-data.h} (100%)
 rename sysdeps/unix/sysv/linux/mips/{errlist-compat.c => errlist-compat-data.h} (100%)
 rename sysdeps/unix/sysv/linux/{siglist-compat.c => siglist-compat.h} (87%)
 rename sysdeps/unix/sysv/linux/sparc/{errlist-compat.c => errlist-compat-data.h} (100%)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-05-12 20:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12 12:59 [PATCH v2 0/4] Remove fno_unit_at_a_time configure check Adhemerval Zanella
2022-05-12 12:59 ` [PATCH v2 1/4] Add declare_object_symbol_alias for assembly codes (BZ #28128) Adhemerval Zanella
2022-05-12 16:52   ` Fangrui Song
2022-05-12 12:59 ` [PATCH v2 2/4] stdio: Remove the usage of $(fno-unit-at-a-time) for errlist.c Adhemerval Zanella
2022-05-12 17:03   ` Fangrui Song
2022-05-12 20:03     ` Adhemerval Zanella
2022-05-12 12:59 ` [PATCH v2 3/4] stdio: Remove the usage of $(fno-unit-at-a-time) for siglist.c Adhemerval Zanella
2022-05-12 17:06   ` Fangrui Song
2022-05-12 20:04     ` Adhemerval Zanella
2022-05-12 12:59 ` [PATCH v2 4/4] Remove configure fno_unit_at_a_time Adhemerval Zanella
2022-05-12 17:07   ` Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).