This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Lots of new failures in C++ testsuite with current CVSversion (in tree.c: unsave_expr_now_r)



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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]