]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: nltvals: pull target errno out into a dedicated source file
authorMike Frysinger <vapier@gentoo.org>
Wed, 7 Jul 2021 02:10:53 +0000 (22:10 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 31 Oct 2021 08:31:28 +0000 (04:31 -0400)
commita7e40a99318c46ec57a9c0a64c622b6ec0ed89ff
tree85e48ec389ff5f1d3b5a60289517a558cc2937e0
parentf9cd2be59c1c1d56d95a191f82298ee92cf41231
sim: nltvals: pull target errno out into a dedicated source file

The current system maintains a list of target errno constants in the
nltvals.def file, then runs a build-time tool to turn that into a C
file.  This list of errno values is the same for all arches, so we
don't need the arch-specific flexibility.  Further, these are only
for newlib/libgloss environments, which makes it confusing to support
other userland runtimes (like Linux).  Let's simplify to make this
easier to understand & build.  We don't namespace the variables yet,
but sets up the framework for it.

Create a new target-newlib-errno.c template file.  The template file
is hand written, but the inline map is still automatically generated.

This allows us to move it to the common set of objects so it's only
built once in a multi-target build.

Now we can remove the output from the gentmap build-time tool since
it's checked into the tree.

Then we stop including the errno lists in nltvals.def since nothing
uses it.
sim/Makefile.in
sim/common/Make-common.in
sim/common/gennltvals.py
sim/common/gentmap.c
sim/common/local.mk
sim/common/nltvals.def
sim/common/target-newlib-errno.c [new file with mode: 0644]