aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@redhat.com>2000-11-22 01:22:02 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2000-11-22 01:22:02 +0000
commitc25c12b8aa19e3a23ea3511184b87d739555d4ae (patch)
tree2c6657d3d97f9c62e1acbc3a2c7ea186a70e237e /gcc/rtl.h
parentf940c352debee086372f374dc8cf374b8f485fd7 (diff)
downloadgcc-c25c12b8aa19e3a23ea3511184b87d739555d4ae.zip
gcc-c25c12b8aa19e3a23ea3511184b87d739555d4ae.tar.gz
gcc-c25c12b8aa19e3a23ea3511184b87d739555d4ae.tar.bz2
rtl.h (traverse_md_constants): Declare.
* rtl.h (traverse_md_constants): Declare. (struct md_constant): Define. * Makefile.in (HOST_RTL): Add hashtab.o . (OBJS): Add hashtab.o . (hashtab.o): New rule. (rtl.o): Depends on HASHTAB_H. * rtl.c (hashtab.h): #include. (md_constants): New static variable. (def_hash, def_name_eq_p, read_constants): New static functions. (traverse_md_constants): New function. (read_name): Do constant expansion. (read_rtx): Recognize define_constants. * gencodes.c (print_md_constant): New function. (main): Emit #defines for all constant definitions encountered. * md.texi (Constant Definitions): New node. * gensupport.c (xcalloc): New function. From-SVN: r37635
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 762226c..c0f543d 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1946,6 +1946,9 @@ extern void init_varasm_once PARAMS ((void));
/* In rtl.c */
extern void init_rtl PARAMS ((void));
+extern void traverse_md_constants PARAMS ((int (*) (void **, void *),
+ void *));
+struct md_constant { char *name, *value; };
#ifdef BUFSIZ
extern int read_skip_spaces PARAMS ((FILE *));