This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
bad C in output_predicate_decls
- To: aoliva at redhat dot com
- Subject: bad C in output_predicate_decls
- From: Robert Lipe <robertlipe at usa dot net>
- Date: Thu, 4 Jan 2001 10:18:45 -0600
- Cc: gcc at gcc dot gnu dot org
Alexandre, your new code seems to use a GCC extension, thus breaking
bootstraps for systems where vendor cc isn't GNU C. The '{}' below
isn't accepted by any ISO C compiler that I can find, though it is
accepted by GCC with -ansi. -pedantic warns about it.
static void
output_predicate_decls ()
{
#ifdef PREDICATE_CODES
static struct {
const char *name;
RTX_CODE codes[NUM_RTX_CODE];
} *p, predicate[] = {
PREDICATE_CODES
{NULL, {}}
};