* error.c (dump_expr): Use host_integerp.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36984
138bc75d-0d04-0410-961f-
82ee72b054a4
+2000-10-20 Jason Merrill <jason@redhat.com>
+
+ * tree.c (walk_tree): Don't walk into default args.
+
+ * error.c (dump_expr): Use host_integerp.
+
2000-10-20 David Edelsohn <edelsohn@gnu.org>
* typeck2.c (abstract_virtuals_error): Use "because" instead of
else
{
do_int:
- if ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (t)
- != (TREE_INT_CST_LOW (t) >> (HOST_BITS_PER_WIDE_INT - 1)))
+ if (! host_integerp (t, 0))
{
tree val = t;
case FUNCTION_TYPE:
WALK_SUBTREE (TREE_TYPE (*tp));
- WALK_SUBTREE (TYPE_ARG_TYPES (*tp));
+ {
+ tree arg = TYPE_ARG_TYPES (*tp);
+
+ /* We never want to walk into default arguments. */
+ for (; arg; arg = TREE_CHAIN (arg))
+ WALK_SUBTREE (TREE_VALUE (arg));
+ }
break;
case ARRAY_TYPE: