This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
and another cpplib patch
- To: gcc-patches at sourceware dot cygnus dot com
- Subject: and another cpplib patch
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 13 Mar 2000 21:06:40 -0800
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------