diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-02-25 09:33:17 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-02-25 09:33:17 +0100 |
commit | 9d975cb6a6cf049da5c0c3fada48a9dc3c016c63 (patch) | |
tree | d43f5f47f5dc89975ca2d057fcc57d8ed279ddea /gcc | |
parent | 680c60feb43035aa3b1ee6ac3bcc9055bf50fd5e (diff) | |
download | gcc-9d975cb6a6cf049da5c0c3fada48a9dc3c016c63.zip gcc-9d975cb6a6cf049da5c0c3fada48a9dc3c016c63.tar.gz gcc-9d975cb6a6cf049da5c0c3fada48a9dc3c016c63.tar.bz2 |
tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
* tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
cp/
* call.c (build_op_delete_call): Make msg1 and msg2 const.
From-SVN: r245734
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/call.c | 4 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-niter.c | 10 |
4 files changed, 11 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a38fd20..04d95a3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2017-02-25 Jakub Jelinek <jakub@redhat.com> + * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning. + PR debug/77589 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value bitfield. diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 990f066..03b79f1 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2017-02-25 Jakub Jelinek <jakub@redhat.com> + + * call.c (build_op_delete_call): Make msg1 and msg2 const. + 2017-02-24 Jakub Jelinek <jakub@redhat.com> PR c++/79588 diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 7ff9872..dd09049 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -6225,10 +6225,10 @@ build_op_delete_call (enum tree_code code, tree addr, tree size, allocation function, the program is ill-formed." */ if (second_parm_is_size_t (fn)) { - const char *msg1 + const char *const msg1 = G_("exception cleanup for this placement new selects " "non-placement operator delete"); - const char *msg2 + const char *const msg2 = G_("%qD is a usual (non-placement) deallocation " "function in C++14 (or with -fsized-deallocation)"); diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c index 269a2ba..d5eaa33 100644 --- a/gcc/tree-ssa-loop-niter.c +++ b/gcc/tree-ssa-loop-niter.c @@ -2362,13 +2362,9 @@ number_of_iterations_exit (struct loop *loop, edge exit, return true; if (warn) - { - const char *wording; - - wording = N_("missed loop optimization, the loop counter may overflow"); - warning_at (gimple_location_safe (stmt), - OPT_Wunsafe_loop_optimizations, "%s", gettext (wording)); - } + warning_at (gimple_location_safe (stmt), + OPT_Wunsafe_loop_optimizations, + "missed loop optimization, the loop counter may overflow"); return false; } |