Commit 9b396d7c by Roger Sayle Committed by Roger Sayle

re PR tree-optimization/19917 (Weak const function mishandled inside loop)


	PR tree-optimization/19917
	* tree-eh.c (tree_could_trap_p): Consider calls to weak functions
	to be potentially trapping.

From-SVN: r95200
parent 2e681715
2005-02-17 Roger Sayle <roger@eyesopen.com>
PR tree-optimization/19917
* tree-eh.c (tree_could_trap_p): Consider calls to weak functions
to be potentially trapping.
2005-02-17 Kazu Hirata <kazu@cs.umass.edu>
* libgcc2.c, tree-vect-analyze.c: Fix comment typos.
......
......@@ -1840,6 +1840,13 @@ tree_could_trap_p (tree expr)
return true;
return false;
case CALL_EXPR:
t = get_callee_fndecl (expr);
/* Assume that calls to weak functions may trap. */
if (!t || !DECL_P (t) || DECL_WEAK (t))
return true;
return false;
default:
/* Any floating arithmetic may trap. */
if (fp_operation && flag_trapping_math)
......
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