diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-10 20:24:45 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-10 20:24:45 +0000 |
commit | 15f255bdf8785cef57a8dc99a4b51db8c8f27cce (patch) | |
tree | 9ddd3e71e5eb92c8ed67ae5ff399982b7ba29d71 /gcc/genconstants.c | |
parent | d37b1ac9e99e9bd33b0d2be2fe22eef2374465d1 (diff) | |
download | gcc-15f255bdf8785cef57a8dc99a4b51db8c8f27cce.tar.gz |
gcc/
* doc/md.texi: Document the "unspec" and "unspecv" enum names.
* Makefile.in (OBJS-common): Include insn-enums.o.
(insn-enums.o): New rule.
(simple_generated_c): Add insn-enums.c.
(build/genenums.o): New rule.
(genprogmd): Add "enums".
* genconstants.c (print_enum_type): Declare a C string array
for each enum.
* genenums.c: New file.
* print-rtl.c (print_rtx): If defined, use the "unspecv" enum
for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160582 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genconstants.c')
-rw-r--r-- | gcc/genconstants.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/genconstants.c b/gcc/genconstants.c index b16a88bc3ea..20b19bfd879 100644 --- a/gcc/genconstants.c +++ b/gcc/genconstants.c @@ -69,6 +69,9 @@ print_enum_type (void **slot, void *info ATTRIBUTE_UNUSED) upcase_string (value_name); printf ("#define %s %d\n", value_name, def->num_values); + /* Declare the array that is generated by genenum. */ + printf ("extern const char *const %s_strings[];\n", def->name); + return 1; } |