read-rtl.c (struct macro_traverse_data): Define.
authorIan Lance Taylor <ian@airs.com>
Tue, 10 May 2005 22:40:37 +0000 (22:40 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 10 May 2005 22:40:37 +0000 (22:40 +0000)
commitf30990b2eefb22de76b53184f33cf87ef0a59425
tree3c192eb398beefd572075f215cd4eb5cbfb5515b
parent5deaef19e6360dc228e4b11cac2070fabdb036f4
read-rtl.c (struct macro_traverse_data): Define.

* read-rtl.c (struct macro_traverse_data): Define.
(map_attr_string): New static function, broken out of
apply_macro_to_string.
(mode_attr_index, apply_mode_maps): New static functions.
(apply_macro_to_string): Call map_attr_string.
(apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
all callers.
(apply_macro_traverse): Expect data to point to a struct
macro_traverse_data.
(read_rtx): Add mode_maps local variable.  Use mode_traverse_data
to pass data through htab_traverse.
(read_rtx_1): Add mode_maps parameter.  Change all callers.
Handle mode names which are attribute strings.
* doc/md.texi (Substitutions): Rename from String Substitutions.
Change references.  Document using attributes as modes.

From-SVN: r99548
gcc/ChangeLog
gcc/doc/md.texi
gcc/read-rtl.c