diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-07-06 23:37:56 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 04:51:44 -0400 |
commit | 670817b94710b751f032d5b89a3026428ce9c397 (patch) | |
tree | e0d82b19bc6895dd09670921fa114febef0dc00a /sim/common/gentmap.c | |
parent | b868a2393bfd65221fe94e4ef2eebf218dee5a71 (diff) | |
download | fsf-binutils-gdb-670817b94710b751f032d5b89a3026428ce9c397.zip fsf-binutils-gdb-670817b94710b751f032d5b89a3026428ce9c397.tar.gz fsf-binutils-gdb-670817b94710b751f032d5b89a3026428ce9c397.tar.bz2 |
sim: nltvals: pull target open flags out into a dedicated source file
Like we just did for pulling out the errno & signal maps, pull out the
open flag map into a dedicated common file. All newlib ports are using
the same map which makes it easy.
Diffstat (limited to 'sim/common/gentmap.c')
-rw-r--r-- | sim/common/gentmap.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c index 2c7288b..4a55c29 100644 --- a/sim/common/gentmap.c +++ b/sim/common/gentmap.c @@ -16,13 +16,6 @@ static struct tdefs sys_tdefs[] = { { 0, 0 } }; -static struct tdefs open_tdefs[] = { -#define open_defs -#include "nltvals.def" -#undef open_defs - { 0, 0 } -}; - static void gen_targ_vals_h (void) { @@ -51,7 +44,6 @@ gen_targ_map_c (void) printf ("/* This file is machine generated by gentmap.c. */\n\n"); printf ("#include \"defs.h\"\n"); - printf ("#include <fcntl.h>\n"); printf ("#include \"ansidecl.h\"\n"); printf ("#include \"sim/callback.h\"\n"); printf ("#include \"targ-vals.h\"\n"); @@ -68,18 +60,6 @@ gen_targ_map_c (void) } printf (" { 0, -1, -1 }\n"); printf ("};\n\n"); - - printf ("/* open flags mapping table */\n"); - printf ("CB_TARGET_DEFS_MAP cb_init_open_map[] = {\n"); - for (t = &open_tdefs[0]; t->symbol; ++t) - { - printf ("#define TARGET_%s 0x%x\n", t->symbol, t->value); - printf ("#ifdef %s\n", t->symbol); - printf (" { \"%s\", %s, TARGET_%s },\n", t->symbol, t->symbol, t->symbol); - printf ("#endif\n"); - } - printf (" { 0, -1, -1 }\n"); - printf ("};\n\n"); } int |