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.
}
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)
&& 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);
}
&& 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);
}
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);