This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: Fix for PR 5876


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)


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