diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2006-02-07 18:04:29 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2006-02-07 18:04:29 +0000 |
commit | e45dcf9c6eaabca7e9df6e92361c82c0d0ae23d0 (patch) | |
tree | 57beded1efa81b435a173506fe6e6f19df8eaad8 /gcc/genconditions.c | |
parent | 0e5264e8ea8f3122c6bc6a4d1289c96c4f3a8d63 (diff) | |
download | gcc-e45dcf9c6eaabca7e9df6e92361c82c0d0ae23d0.tar.gz |
df-core.c (df_set_blocks): Do not dereference function pointers.
* df-core.c (df_set_blocks): Do not dereference function pointers.
(df_finish1): Likewise.
(df_hybrid_search_forward): Likewise.
(df_hybrid_search_backward): Likewise.
(df_iterative_dataflow): Likewise.
(df_analyze_problem): Likewise.
(df_compact_blocks): Likewise.
(df_dump): Likewise.
* df-scan.c (df_rescan_blocks): Likewise.
(df_record_entry_block_defs): Likewise.
* genconditions.c (write_conditions): Guard the definition of
'insn_conditions' with the check on GCC version.
(write_writer): Guard the traversal 'insn_conditions' with
the check on GCC version.
From-SVN: r110702
Diffstat (limited to 'gcc/genconditions.c')
-rw-r--r-- | gcc/genconditions.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/genconditions.c b/gcc/genconditions.c index ae9a67e305c..b67936502b6 100644 --- a/gcc/genconditions.c +++ b/gcc/genconditions.c @@ -160,12 +160,12 @@ struct c_test\n\ vary at run time. It works in 3.0.1 and later; 3.0 only when not\n\ optimizing. */\n\ \n\ -static const struct c_test insn_conditions[] = {\n\ -#if GCC_VERSION >= 3001\n"); +#if GCC_VERSION >= 3001\n\ +static const struct c_test insn_conditions[] = {\n"); traverse_c_tests (write_one_condition, 0); - puts ("\n#endif /* gcc >= 3.0.1 */\n};\n"); + puts ("\n};\n#endif /* gcc >= 3.0.1 */\n"); } /* Emit code which will convert the C-format table to a @@ -181,6 +181,7 @@ write_writer (void) " unsigned int i;\n" " const char *p;\n" " puts (\"(define_conditions [\");\n" + "#if GCC_VERSION >= 3001\n" " for (i = 0; i < ARRAY_SIZE (insn_conditions); i++)\n" " {\n" " printf (\" (%d \\\"\", insn_conditions[i].value);\n" @@ -196,6 +197,7 @@ write_writer (void) " }\n" " puts (\"\\\")\");\n" " }\n" + "#endif /* gcc >= 3.0.1 */\n" " puts (\"])\");\n" " fflush (stdout);\n" "return ferror (stdout) != 0 ? FATAL_EXIT_CODE : SUCCESS_EXIT_CODE;\n" |