From: Richard Henderson Date: Tue, 13 Jan 1998 21:40:27 +0000 (-0800) Subject: * c-typeck.c (comptypes): Exit early on NULL input. X-Git-Tag: releases/libf2c-0.5.21~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d47dfc57f318e28e4e551633705b8d89899dec9;p=thirdparty%2Fgcc.git * c-typeck.c (comptypes): Exit early on NULL input. From-SVN: r17347 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ac803a76218..ef5bb6347c2c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ Tue Jan 13 22:39:40 1998 Richard Henderson (rth@cygnus.com) + * c-typeck.c (comptypes): Exit early on NULL input. + * haifa-sched.c (schedule_insns): Correctly remove inter-block dependencies after reload. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 5bf265ac2083..fb5efd76bdba 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -441,7 +441,8 @@ comptypes (type1, type2) /* Suppress errors caused by previously reported errors. */ - if (t1 == t2 || TREE_CODE (t1) == ERROR_MARK || TREE_CODE (t2) == ERROR_MARK) + if (t1 == t2 || !t1 || !t2 + || TREE_CODE (t1) == ERROR_MARK || TREE_CODE (t2) == ERROR_MARK) return 1; /* Treat an enum type as the integer type of the same width and