/* Process machine description and calculate constant conditions.
- Copyright (C) 2001-2022 Free Software Foundation, Inc.
+ Copyright (C) 2001-2024 Free Software Foundation, Inc.
This file is part of GCC.
}
/* Write out the complete conditions table, its size, and a flag
- indicating that gensupport.c can now do insn elision. */
+ indicating that gensupport.cc can now do insn elision. */
static void
write_conditions (void)
{
traverse_c_tests (write_one_condition, 0);
- puts ("\n};\n#endif /* gcc >= 3.0.1 */\n");
+ puts (" { nullptr, -1 }\n};\n#endif /* gcc >= 3.0.1 */\n");
}
/* Emit code which will convert the C-format table to a
" const char *p;\n"
" puts (\"(define_conditions [\");\n"
"#if GCC_VERSION >= 3001\n"
- " for (i = 0; i < ARRAY_SIZE (insn_conditions); i++)\n"
+ " for (i = 0; i < ARRAY_SIZE (insn_conditions) - 1; i++)\n"
" {\n"
" printf (\" (%d \\\"\", insn_conditions[i].value);\n"
" for (p = insn_conditions[i].expr; *p; p++)\n"