From b3abfd6fc10e886efa58bf9a27b99bfefe843883 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 27 Jul 1998 21:42:35 +0000 Subject: tree.c (simple_cst_equal, [...]): OK if the elts are identical. * tree.c (simple_cst_equal, case CONSTRUCTOR): OK if the elts are identical. From-SVN: r21425 --- gcc/tree.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/tree.c') diff --git a/gcc/tree.c b/gcc/tree.c index b02e87e..83c42c5 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -3984,7 +3984,10 @@ simple_cst_equal (t1, t2) TREE_STRING_LENGTH (t1)); case CONSTRUCTOR: - abort (); + if (CONSTRUCTOR_ELTS (t1) == CONSTRUCTOR_ELTS (t2)) + return 1; + else + abort (); case SAVE_EXPR: return simple_cst_equal (TREE_OPERAND (t1, 0), TREE_OPERAND (t2, 0)); -- cgit v1.1