This is the mail archive of the gcc-patches@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]

and another cpplib patch


I'm not entirely sure about this patch.  It seems somewhat logical and
there definitely is something wrong.  For assertions the defn memer of
DEFINITION is not initialized.  I assume it has to be done as in the
patch below.

With this patch -dM at least works again.  But I have other
preprocessing problems.  I've probably never compiled glibc with the
cpp using cpplib so there might be bugs.

2000-02-13  Ulrich Drepper  <drepper@redhat.com>

	* cpplib.c (do_assert): Initialize defn elements.

Index: cpplib.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cpplib.c,v
retrieving revision 1.133
diff -u -u -b -r1.133 cpplib.c
--- cpplib.c	2000/03/13 22:01:07	1.133
+++ cpplib.c	2000/03/14 05:03:28
@@ -1747,7 +1747,9 @@
     }
   *tslot = this = _cpp_make_hashnode (sym, tlen, T_ASSERT, thash);
   this->value.aschain = base->value.aschain;
+  this->value.defn = base->value.defn;
   base->value.aschain = this;
+  base->value.defn = NULL;
   
   pfile->limit = sym;		/* Pop */
   return 0;


-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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