This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Lots of new failures in C++ testsuite with current CVSversion (in tree.c: unsave_expr_now_r)
- To: aj at suse dot de
- Subject: Re: Lots of new failures in C++ testsuite with current CVSversion (in tree.c: unsave_expr_now_r)
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 25 Nov 1999 08:13:40 -0800
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <u8so1vqaif.fsf@gromit.rhein-neckar.de>
Fixed with this patch. Another change in my local tree prevented this
function from ever being called with NULL_TREE...
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
1999-11-25 Mark Mitchell <mark@codesourcery.com>
* tree.c (unsave_expr_now): Handle NULL_TREE as input.
Index: tree.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tree.c,v
retrieving revision 1.105
diff -c -p -r1.105 tree.c
*** tree.c 1999/11/24 01:19:04 1.105
--- tree.c 1999/11/25 16:11:39
*************** unsave_expr_now_r (expr)
*** 2469,2474 ****
--- 2469,2478 ----
{
enum tree_code code;
+ /* There's nothing to do for NULL_TREE. */
+ if (!expr)
+ return;
+
unsave_expr_1 (expr);
code = TREE_CODE (expr);