[Solaris 8/Intel] cc chokes on inline static
Rainer Orth
ro@TechFak.Uni-Bielefeld.DE
Wed Apr 25 06:26:00 GMT 2001
I just tried to bootstrap gcc 3.0 20010402 on Solaris 8 7/01 Beta (Intel)
with cc (Sun WorkShop 6 update 2 C 5.3 EA2 2001/02/24). The bootstrap
fails compiling dwarfout.c:
"gcc/dwarfout.c", line 814: only one storage class allowed
"gcc/dwarfout.c", line 823: only one storage class allowed
"gcc/dwarfout.c", line 845: only one storage class allowed
"gcc/dwarfout.c", line 4663: only one storage class allowed
With the following patch, the bootstrap continues.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
Wed Apr 25 15:13:09 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* dwarfout.c (is_pseudo_reg, type_main_variant, is_tagged_type,
is_redundant_typedef): Use static inline instead of inline static.
Index: dwarfout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/dwarfout.c,v
retrieving revision 1.79.2.1
diff -u -p -r1.79.2.1 dwarfout.c
--- dwarfout.c 2001/02/21 14:56:07 1.79.2.1
+++ dwarfout.c 2001/04/25 13:11:38
@@ -811,7 +811,7 @@ static void retry_incomplete_types PARAM
/************************ general utility functions **************************/
-inline static int
+static inline int
is_pseudo_reg (rtl)
register rtx rtl;
{
@@ -820,7 +820,7 @@ is_pseudo_reg (rtl)
&& (REGNO (XEXP (rtl, 0)) >= FIRST_PSEUDO_REGISTER)));
}
-inline static tree
+static inline tree
type_main_variant (type)
register tree type;
{
@@ -842,7 +842,7 @@ type_main_variant (type)
/* Return non-zero if the given type node represents a tagged type. */
-inline static int
+static inline int
is_tagged_type (type)
register tree type;
{
@@ -4660,7 +4660,7 @@ output_decls_for_scope (stmt, depth)
/* Is this a typedef we can avoid emitting? */
-inline static int
+static inline int
is_redundant_typedef (decl)
register tree decl;
{
More information about the Gcc-patches
mailing list