Commit 9d975cb6 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 680c60fe
2017-02-25 Jakub Jelinek <jakub@redhat.com> 2017-02-25 Jakub Jelinek <jakub@redhat.com>
* tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
PR debug/77589 PR debug/77589
* dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
bitfield. bitfield.
......
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> 2017-02-24 Jakub Jelinek <jakub@redhat.com>
PR c++/79588 PR c++/79588
......
...@@ -6225,10 +6225,10 @@ build_op_delete_call (enum tree_code code, tree addr, tree size, ...@@ -6225,10 +6225,10 @@ build_op_delete_call (enum tree_code code, tree addr, tree size,
allocation function, the program is ill-formed." */ allocation function, the program is ill-formed." */
if (second_parm_is_size_t (fn)) if (second_parm_is_size_t (fn))
{ {
const char *msg1 const char *const msg1
= G_("exception cleanup for this placement new selects " = G_("exception cleanup for this placement new selects "
"non-placement operator delete"); "non-placement operator delete");
const char *msg2 const char *const msg2
= G_("%qD is a usual (non-placement) deallocation " = G_("%qD is a usual (non-placement) deallocation "
"function in C++14 (or with -fsized-deallocation)"); "function in C++14 (or with -fsized-deallocation)");
......
...@@ -2362,13 +2362,9 @@ number_of_iterations_exit (struct loop *loop, edge exit, ...@@ -2362,13 +2362,9 @@ number_of_iterations_exit (struct loop *loop, edge exit,
return true; return true;
if (warn) if (warn)
{ warning_at (gimple_location_safe (stmt),
const char *wording; OPT_Wunsafe_loop_optimizations,
"missed loop optimization, the loop counter may overflow");
wording = N_("missed loop optimization, the loop counter may overflow");
warning_at (gimple_location_safe (stmt),
OPT_Wunsafe_loop_optimizations, "%s", gettext (wording));
}
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment