aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-03-14 05:10:47 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-03-14 05:10:47 -0500
commit153c149bec658b114e073e7037a9f809c1940ac3 (patch)
treee4c7933b3f19c257a7a59a7bca21e06839af03dc /gcc
parentab29fdfc6f2682e996600cadf6ac272bc6f60532 (diff)
downloadgcc-153c149bec658b114e073e7037a9f809c1940ac3.zip
gcc-153c149bec658b114e073e7037a9f809c1940ac3.tar.gz
gcc-153c149bec658b114e073e7037a9f809c1940ac3.tar.bz2
(expand_builtin, case BUILT_IN_RETURN_ADDRESS): Call tree_int_cst_sgn.
From-SVN: r6778
Diffstat (limited to 'gcc')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 23b009a..c750cb6 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -7032,7 +7032,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
error ("invalid arg to `__builtin_return_address'");
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'");
return const0_rtx;