diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-03-08 11:50:23 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-03-08 11:50:23 +0100 |
commit | 723a52f9512a22af0f3f6758770b60dd8dfb7d47 (patch) | |
tree | c8f1a08f061063eb5914c295a198c131b9a45273 | |
parent | 1db01ff96aa5ce5c4ad78313d342cf70f923b40c (diff) | |
download | gcc-723a52f9512a22af0f3f6758770b60dd8dfb7d47.zip gcc-723a52f9512a22af0f3f6758770b60dd8dfb7d47.tar.gz gcc-723a52f9512a22af0f3f6758770b60dd8dfb7d47.tar.bz2 |
gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap warning_at or inform messages in G_() if there is no ?:.
* gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
warning_at or inform messages in G_() if there is no ?:.
From-SVN: r269486
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/gimple-ssa-warn-alloca.c | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ce5907..86bb8d5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2019-03-08 Jakub Jelinek <jakub@redhat.com> + * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap + warning_at or inform messages in G_() if there is no ?:. + PR tree-optimization/89550 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at returned true. Formatting fixes. diff --git a/gcc/gimple-ssa-warn-alloca.c b/gcc/gimple-ssa-warn-alloca.c index 2d88fcf..d804146 100644 --- a/gcc/gimple-ssa-warn-alloca.c +++ b/gcc/gimple-ssa-warn-alloca.c @@ -528,7 +528,7 @@ pass_walloca::execute (function *fun) } else if (warn_alloca) { - warning_at (loc, OPT_Walloca, G_("use of %<alloca%>")); + warning_at (loc, OPT_Walloca, "use of %<alloca%>"); continue; } else if (warn_alloca_limit < 0) @@ -571,8 +571,8 @@ pass_walloca::execute (function *fun) && t.limit != 0) { print_decu (t.limit, buff); - inform (loc, G_("limit is %wu bytes, but argument " - "may be as large as %s"), + inform (loc, "limit is %wu bytes, but argument " + "may be as large as %s", is_vla ? warn_vla_limit : adjusted_alloca_limit, buff); } @@ -588,7 +588,7 @@ pass_walloca::execute (function *fun) && t.limit != 0) { print_decu (t.limit, buff); - inform (loc, G_("limit is %wu bytes, but argument is %s"), + inform (loc, "limit is %wu bytes, but argument is %s", is_vla ? warn_vla_limit : adjusted_alloca_limit, buff); } @@ -606,7 +606,7 @@ pass_walloca::execute (function *fun) break; case ALLOCA_IN_LOOP: gcc_assert (!is_vla); - warning_at (loc, wcode, G_("use of %<alloca%> within a loop")); + warning_at (loc, wcode, "use of %<alloca%> within a loop"); break; case ALLOCA_CAST_FROM_SIGNED: gcc_assert (invalid_casted_type != NULL_TREE); |