This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: Fix for PR 5876
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>, Alexandre Petit-Bianco <apbianco at redhat dot com>
- Date: 18 Mar 2002 13:05:08 -0700
- Subject: Patch: FYI: Fix for PR 5876
- Reply-to: tromey at redhat dot com
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)