diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-20 22:44:50 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-20 22:44:50 +0000 |
commit | 68fee5e0afed307b1b456e994a4ef82915a7fbb6 (patch) | |
tree | d7a92cd8ec4aed354cbdea6762e9270f367f380e /gcc/print-tree.c | |
parent | fdeac5cec68297213b829b922bc6dea485688a5b (diff) | |
download | gcc-68fee5e0afed307b1b456e994a4ef82915a7fbb6.tar.gz |
* machmode.h (mode_name): Constify a char*.
* rtl.c (mode_name): Likewise.
* genopinit.c (gen_insn): Use accessor macro, not `mode_name'.
* optabs.c (init_libfuncs): Constify a char*.
* print-tree.c (mode_name): Remove redundant declaration.
(print_node): Use accessor macro, not `mode_name'.
* reload1.c (dump_needs): Constify a char*. Use accessor macro,
not `mode_name'.
(new_spill_reg): Constify a char*.
* tree.c (mode_name): Remove redundant declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28783 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/print-tree.c')
-rw-r--r-- | gcc/print-tree.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 82e648dfd3e..55eb4c8a8b2 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -23,8 +23,6 @@ Boston, MA 02111-1307, USA. */ #include "system.h" #include "tree.h" -extern char *mode_name[]; - void print_node (); void indent_to (); @@ -389,7 +387,7 @@ print_node (file, prefix, node, indent) if (DECL_LANG_FLAG_7 (node)) fputs (" decl_7", file); - fprintf (file, " %s", mode_name[(int) mode]); + fprintf (file, " %s", GET_MODE_NAME(mode)); fprintf (file, " file %s line %d", DECL_SOURCE_FILE (node), DECL_SOURCE_LINE (node)); @@ -474,7 +472,7 @@ print_node (file, prefix, node, indent) fputs (" type_6", file); mode = TYPE_MODE (node); - fprintf (file, " %s", mode_name[(int) mode]); + fprintf (file, " %s", GET_MODE_NAME(mode)); print_node (file, "size", TYPE_SIZE (node), indent + 4); indent_to (file, indent + 3); |