mirror of git://gcc.gnu.org/git/gcc.git
fold-const.c (fold_comparison): Remove redundant parenthesis.
2010-06-08 Shujing Zhao <pearly.zhao@oracle.com> * fold-const.c (fold_comparison): Remove redundant parenthesis. * tree-inline.c (expand_call_inline): Pass translated return value of cgraph_inline_failed_string to diagnostic function. From-SVN: r160419
This commit is contained in:
parent
6a8f4e12f5
commit
49c8958b58
|
@ -1,3 +1,9 @@
|
||||||
|
2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
|
||||||
|
|
||||||
|
* fold-const.c (fold_comparison): Remove redundant parenthesis.
|
||||||
|
* tree-inline.c (expand_call_inline): Pass translated return value of
|
||||||
|
cgraph_inline_failed_string to diagnostic function.
|
||||||
|
|
||||||
2010-06-08 Andrew Pinski <pinskia@gmail.com>
|
2010-06-08 Andrew Pinski <pinskia@gmail.com>
|
||||||
Shujing Zhao <pearly.zhao@oracle.com>
|
Shujing Zhao <pearly.zhao@oracle.com>
|
||||||
|
|
||||||
|
|
|
@ -8651,9 +8651,9 @@ fold_comparison (location_t loc, enum tree_code code, tree type,
|
||||||
&& (TREE_CODE (lhs) != INTEGER_CST
|
&& (TREE_CODE (lhs) != INTEGER_CST
|
||||||
|| !TREE_OVERFLOW (lhs)))
|
|| !TREE_OVERFLOW (lhs)))
|
||||||
{
|
{
|
||||||
fold_overflow_warning (("assuming signed overflow does not occur "
|
fold_overflow_warning ("assuming signed overflow does not occur "
|
||||||
"when changing X +- C1 cmp C2 to "
|
"when changing X +- C1 cmp C2 to "
|
||||||
"X cmp C1 +- C2"),
|
"X cmp C1 +- C2",
|
||||||
WARN_STRICT_OVERFLOW_COMPARISON);
|
WARN_STRICT_OVERFLOW_COMPARISON);
|
||||||
return fold_build2_loc (loc, code, type, variable, lhs);
|
return fold_build2_loc (loc, code, type, variable, lhs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3774,7 +3774,7 @@ expand_call_inline (basic_block bb, gimple stmt, copy_body_data *id)
|
||||||
&& cgraph_global_info_ready)
|
&& cgraph_global_info_ready)
|
||||||
{
|
{
|
||||||
sorry ("inlining failed in call to %q+F: %s", fn,
|
sorry ("inlining failed in call to %q+F: %s", fn,
|
||||||
cgraph_inline_failed_string (reason));
|
_(cgraph_inline_failed_string (reason)));
|
||||||
sorry ("called from here");
|
sorry ("called from here");
|
||||||
}
|
}
|
||||||
else if (warn_inline && DECL_DECLARED_INLINE_P (fn)
|
else if (warn_inline && DECL_DECLARED_INLINE_P (fn)
|
||||||
|
@ -3785,7 +3785,7 @@ expand_call_inline (basic_block bb, gimple stmt, copy_body_data *id)
|
||||||
&& cgraph_global_info_ready)
|
&& cgraph_global_info_ready)
|
||||||
{
|
{
|
||||||
warning (OPT_Winline, "inlining failed in call to %q+F: %s",
|
warning (OPT_Winline, "inlining failed in call to %q+F: %s",
|
||||||
fn, cgraph_inline_failed_string (reason));
|
fn, _(cgraph_inline_failed_string (reason)));
|
||||||
warning (OPT_Winline, "called from here");
|
warning (OPT_Winline, "called from here");
|
||||||
}
|
}
|
||||||
goto egress;
|
goto egress;
|
||||||
|
|
Loading…
Reference in New Issue