Commit 153c149b by Richard Kenner

(expand_builtin, case BUILT_IN_RETURN_ADDRESS): Call tree_int_cst_sgn.

From-SVN: r6778
parent ab29fdfc
...@@ -7032,7 +7032,7 @@ expand_builtin (exp, target, subtarget, mode, ignore) ...@@ -7032,7 +7032,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
error ("invalid arg to `__builtin_return_address'"); error ("invalid arg to `__builtin_return_address'");
return const0_rtx; return const0_rtx;
} }
else if (tree_int_cst_lt (TREE_VALUE (arglist), integer_zero_node)) else if (tree_int_cst_sgn (TREE_VALUE (arglist)) < 0)
{ {
error ("invalid arg to `__builtin_return_address'"); error ("invalid arg to `__builtin_return_address'");
return const0_rtx; return const0_rtx;
......
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