Patch: FYI: Fix for PR 5876
Tom Tromey
tromey@redhat.com
Mon Mar 18 13:38:00 GMT 2002
I'm checking this in to the trunk and the branch.
This is a patch that Alex wrote that fixes PR 5876. I think it
qualifies as obvious; also I verified it by building a mingw toolchain.
Tom
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/ChangeLog,v
retrieving revision 1.925.2.18
diff -u -r1.925.2.18 ChangeLog
--- ChangeLog 2002/03/18 10:39:05 1.925.2.18
+++ ChangeLog 2002/03/18 19:32:14
@@ -1,3 +1,8 @@
+2002-03-18 Alexandre Petit-Bianco <apbianco@redhat.com>
+
+ * builtins.c (define_builtin): Do nothing if `type' is null.
+ Fixes PR java/5876.
+
2002-03-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* parse.y (parser_check_super_interface): Fix error message
Index: builtins.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/builtins.c,v
retrieving revision 1.3.4.1
diff -u -r1.3.4.1 builtins.c
--- builtins.c 2002/03/05 05:09:31 1.3.4.1
+++ builtins.c 2002/03/18 19:32:14
@@ -200,7 +200,7 @@
{
tree decl;
- if (! name)
+ if (! name || ! type)
return;
if (strncmp (name, "__builtin_", strlen ("__builtin_")) != 0)
More information about the Java-patches
mailing list