This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix Solaris 2 bootstrap (config/sol2-c.c)
- From: Rainer Orth <ro at techfak dot uni-bielefeld dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 25 Aug 2009 21:50:09 +0200 (MEST)
- Subject: PATCH: Fix Solaris 2 bootstrap (config/sol2-c.c)
Since this patch
2009-08-24 Kai Tietz <kai.tietz@onevision.com>
PR/40786
* c-format.c (format_wanted_type): Add new member scalar_identity_flag.
mainline fails to bootstrap on Solaris 2:
/vol/gcc/src/gcc-dist/gcc/config/sol2-c.c:39:3: error: missing initializer
/vol/gcc/src/gcc-dist/gcc/config/sol2-c.c:39:3: error: (near initialization for 'cmn_err_length_specs[0].scalar_identity_flag')
/vol/gcc/src/gcc-dist/gcc/config/sol2-c.c:40:3: error: missing initializer
/vol/gcc/src/gcc-dist/gcc/config/sol2-c.c:40:3: error: (near initialization for 'cmn_err_length_specs[1].scalar_identity_flag')
make[3]: *** [sol2-c.o] Error 1
The following trivial patch fixes this and allows the bootstrap to continue,
failing later on for
http://gcc.gnu.org/ml/gcc/2009-07/msg00620.html
I'd almost install this as obvious.
Ok for mainline?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
2009-08-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/sol2-c.c (cmn_err_length_specs): Initialize
scalar_identity_flag.
Index: gcc/config/sol2-c.c
===================================================================
--- gcc/config/sol2-c.c (revision 151074)
+++ gcc/config/sol2-c.c (working copy)
@@ -36,8 +36,8 @@
/* cmn_err only accepts "l" and "ll". */
static const format_length_info cmn_err_length_specs[] =
{
- { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C89 },
- { NULL, FMT_LEN_none, STD_C89, NULL, FMT_LEN_none, STD_C89 }
+ { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C89, 0 },
+ { NULL, FMT_LEN_none, STD_C89, NULL, FMT_LEN_none, STD_C89, 0 }
};
static const format_flag_spec cmn_err_flag_specs[] =