aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pop <pop@cri.ensmp.fr>2004-07-16 19:55:47 +0200
committerSebastian Pop <spop@gcc.gnu.org>2004-07-16 17:55:47 +0000
commit4619c7017fd62d7df2b73d57c492f30a173b8394 (patch)
treea2652fbc3bf785d92087b4b70ea0f48b74376763
parent58ec6ece35f6af8ea22b4b483b44b49aa5b64056 (diff)
downloadgcc-4619c7017fd62d7df2b73d57c492f30a173b8394.zip
gcc-4619c7017fd62d7df2b73d57c492f30a173b8394.tar.gz
gcc-4619c7017fd62d7df2b73d57c492f30a173b8394.tar.bz2
Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
* Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h. * tree-pretty-print.c: Include tree-chrec.h. (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN and POLYNOMIAL_CHREC nodes. From-SVN: r84826
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/Makefile.in2
-rw-r--r--gcc/tree-pretty-print.c19
3 files changed, 27 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e321169..e34f5f0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
+
+ * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
+ * tree-pretty-print.c: Include tree-chrec.h.
+ (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
+ and POLYNOMIAL_CHREC nodes.
+
2004-07-16 Steve Ellcey <sje@cup.hp.com>
* builtins.c (expand_builtin_stpcpy): Do not create temporary
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 68b7252..b2f4c94 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1738,7 +1738,7 @@ tree-nomudflap.o : $(CONFIG_H) errors.h $(SYSTEM_H) $(TREE_H) tree-inline.h \
output.h varray.h langhooks.h tree-mudflap.h $(TM_H) coretypes.h
tree-pretty-print.o : tree-pretty-print.c $(CONFIG_H) $(SYSTEM_H) \
errors.h $(TREE_H) diagnostic.h real.h $(HASHTAB_H) $(TREE_FLOW_H) \
- $(TM_H) coretypes.h tree-iterator.h
+ $(TM_H) coretypes.h tree-iterator.h tree-chrec.h
fold-const.o : fold-const.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(TREE_H) $(FLAGS_H) real.h toplev.h $(HASHTAB_H) $(EXPR_H) $(RTL_H) $(GGC_H) \
$(TM_P_H) langhooks.h $(MD5_H)
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index e660b44..65d362a 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -31,6 +31,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "tree-flow.h"
#include "langhooks.h"
#include "tree-iterator.h"
+#include "tree-chrec.h"
/* Local functions, macros and variables. */
static int op_prio (tree);
@@ -1416,6 +1417,24 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
pp_printf (buffer, "VH.%d", VALUE_HANDLE_ID (node));
break;
+ case SCEV_KNOWN:
+ pp_string (buffer, "scev_known");
+ break;
+
+ case SCEV_NOT_KNOWN:
+ pp_string (buffer, "scev_not_known");
+ break;
+
+ case POLYNOMIAL_CHREC:
+ pp_string (buffer, "{");
+ dump_generic_node (buffer, CHREC_LEFT (node), spc, flags, false);
+ pp_string (buffer, ", +, ");
+ dump_generic_node (buffer, CHREC_RIGHT (node), spc, flags, false);
+ pp_string (buffer, "}_");
+ dump_generic_node (buffer, CHREC_VAR (node), spc, flags, false);
+ is_stmt = false;
+ break;
+
default:
NIY;
}