This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
egcs-1.1.2/sysV68 `static' missing in cp files
- To: egcs-patches at egcs dot cygnus dot com (egcs-patches at egcs dot cygnus dot com)
- Subject: egcs-1.1.2/sysV68 `static' missing in cp files
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Mon, 31 May 1999 02:45:04 +0200 (CEST)
In order to compile egcs-1.1.2 on sysV68 (m68k-motorola-sysv) bootstrapped
with the native cc, I needed to apply the following patch in gcc/cp :
Mon May 31 02:22:55 1999 Philippe De Muyter <phdm@macqel.be>
* pt.c (is_member_template_class): Function made static to match
previous prototype.
* class.c (handle_using_decl): Likewise.
* decl2.c (build_anon_union_vars): Likewise.
* method.c (is_back_referenceable_type): Likewise.
--- ./gcc/cp/pt.c Sun May 30 14:25:30 1999
+++ ./gcc/cp/pt.c Fri May 21 06:34:32 1999
@@ -383,7 +383,7 @@ is_member_template (t)
is_member_template for a description of what precisely constitutes
a member template. */
-int
+static int
is_member_template_class (t)
tree t;
{
--- ./gcc/cp/class.c Sun May 30 14:25:32 1999
+++ ./gcc/cp/class.c Fri May 21 06:35:47 1999
@@ -1321,7 +1321,7 @@ alter_access (t, binfo, fdecl, access)
non-NULL, is the methods of T. The FIELDS are the fields of T.
Returns 1 if the USING_DECL was valid, 0 otherwise. */
-void
+static void
handle_using_decl (using_decl, t, method_vec, fields)
tree using_decl;
tree t;
--- ./gcc/cp/decl2.c Sun May 30 14:25:33 1999
+++ ./gcc/cp/decl2.c Fri May 21 06:37:01 1999
@@ -2198,7 +2198,7 @@ get_temp_regvar (type, init)
returns a VAR_DECL whose size is the same as the size of the
ANON_DECL, if one is available. */
-tree
+static tree
build_anon_union_vars (anon_decl, elems, static_p, external_p)
tree anon_decl;
tree* elems;
--- ./gcc/cp/method.c Sun May 30 14:25:34 1999
+++ ./gcc/cp/method.c Fri May 21 06:38:01 1999
@@ -325,7 +325,7 @@ flush_repeats (nrepeats, type)
/* Returns nonzero iff this is a type to which we will want to make
back-references (using the `B' code). */
-int
+static int
is_back_referenceable_type (type)
tree type;
{