aboutsummaryrefslogtreecommitdiff
path: root/gcc/passes.def
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2021-05-05 11:07:39 -0600
committerMartin Sebor <msebor@redhat.com>2021-05-05 11:07:39 -0600
commit2254b3233b5bfa690e8c6e6fa923e4626a6a93d3 (patch)
tree5e30e5532144cc52eb66e60a87ab1d8b0d021821 /gcc/passes.def
parent2b71ca688b0ae14d3a35dab12f1f11a2a6292b7d (diff)
downloadgcc-2254b3233b5bfa690e8c6e6fa923e4626a6a93d3.zip
gcc-2254b3233b5bfa690e8c6e6fa923e4626a6a93d3.tar.gz
gcc-2254b3233b5bfa690e8c6e6fa923e4626a6a93d3.tar.bz2
PR middle-end/100325 - missing warning with -O0 on sprintf overflow with pointer plus offset
gcc/ChangeLog: * passes.def (pass_warn_printf): Run after SSA. gcc/testsuite/ChangeLog: * gcc.dg/tree-ssa/builtin-sprintf-warn-26.c: New test.
Diffstat (limited to 'gcc/passes.def')
-rw-r--r--gcc/passes.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/passes.def b/gcc/passes.def
index 55e8164..de39fa4 100644
--- a/gcc/passes.def
+++ b/gcc/passes.def
@@ -45,7 +45,6 @@ along with GCC; see the file COPYING3. If not see
NEXT_PASS (pass_warn_function_return);
NEXT_PASS (pass_coroutine_early_expand_ifns);
NEXT_PASS (pass_expand_omp);
- NEXT_PASS (pass_warn_printf);
NEXT_PASS (pass_walloca, /*strict_mode_p=*/true);
NEXT_PASS (pass_build_cgraph_edges);
TERMINATE_PASS_LIST (all_lowering_passes)
@@ -58,6 +57,7 @@ along with GCC; see the file COPYING3. If not see
PUSH_INSERT_PASSES_WITHIN (pass_build_ssa_passes)
NEXT_PASS (pass_fixup_cfg);
NEXT_PASS (pass_build_ssa);
+ NEXT_PASS (pass_warn_printf);
NEXT_PASS (pass_warn_nonnull_compare);
NEXT_PASS (pass_early_warn_uninitialized);
NEXT_PASS (pass_ubsan);