pkgsrc/lang/gcc2/patches/patch-ai
wiz 39b07f0c64 Re-Import gcc2-2.95.3nb7 as lang/gcc2 (previously lang/gcc).
This directory contains the GNU Compiler Collection (GCC) version 2.95.
It includes all of the support for compiling C, C++, Objective C, Fortran,
Java, and Chill.

The GNU Compiler Collection is free software.  See the file COPYING for copying
permission.

See the file gcc.texi (together with other files that it includes) for
installation and porting information.  The file INSTALL contains a
copy of the installation information, as plain ASCII.

See the Bugs chapter of the GCC Manual for how to report bugs
usefully.  An online readable version of the manual is in the files
gcc.info*.
2015-04-25 10:32:07 +00:00

20 lines
725 B
Text

$NetBSD: patch-ai,v 1.1 2015/04/25 10:32:07 wiz Exp $
--- gcc/java/parse.y.orig 2010-10-12 22:33:34.000000000 +0000
+++ gcc/java/parse.y
@@ -10164,6 +10164,7 @@ resolve_type_during_patch (type)
}
/* 5.5 Casting Conversion. error_mark_node is returned if an error is
found. Otherwise NODE or something meant to replace it is returned. */
+static tree convert_narrow ();
static tree
patch_cast (node, wfl_operator)
@@ -10182,7 +10183,6 @@ patch_cast (node, wfl_operator)
/* Check on cast that are proven correct at compile time */
if (JNUMERIC_TYPE_P (cast_type) && JNUMERIC_TYPE_P (op_type))
{
- static tree convert_narrow ();
/* Same type */
if (cast_type == op_type)
return node;