diff options
author | Martin Sebor <msebor@redhat.com> | 2021-05-05 11:07:39 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-05-05 11:07:39 -0600 |
commit | 2254b3233b5bfa690e8c6e6fa923e4626a6a93d3 (patch) | |
tree | 5e30e5532144cc52eb66e60a87ab1d8b0d021821 /gcc/passes.def | |
parent | 2b71ca688b0ae14d3a35dab12f1f11a2a6292b7d (diff) | |
download | gcc-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.def | 2 |
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); |