re PR java/5876 (jc1 crashes when targeting mingw32)
authorAlexandre Petit-Bianco <apbianco@redhat.com>
Mon, 18 Mar 2002 19:38:35 +0000 (11:38 -0800)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 18 Mar 2002 19:38:35 +0000 (19:38 +0000)
2002-03-18  Alexandre Petit-Bianco  <apbianco@redhat.com>

* builtins.c (define_builtin): Do nothing if `type' is null.
Fixes PR java/5876.

From-SVN: r50990

gcc/java/ChangeLog
gcc/java/builtins.c

index 0b9051db33ed738a12e17a3b0cd9b83ed0927251..efdbde5d0f93f6fb895cf76cb3dc1c03a5b2fe19 100644 (file)
@@ -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 7db228cf2c7b6104c90240ea6dab5da078a19dd4..7af0435dda6ab291efb2b8005bdc6631e412ddbd 100644 (file)
@@ -200,7 +200,7 @@ define_builtin (val, name, class, type, fallback_p)
 {
   tree decl;
 
-  if (! name)
+  if (! name || ! type)
     return;
 
   if (strncmp (name, "__builtin_", strlen ("__builtin_")) != 0)