diff options
author | Richard Guenther <rguenther@suse.de> | 2007-06-27 14:01:27 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-06-27 14:01:27 +0000 |
commit | 3b35764639e5ada3cb9af920e9c30d4ec0b6a104 (patch) | |
tree | 8bf61b8be7e8989d8c213faaeb4fb64ab0561c76 /gcc/gimplify.c | |
parent | 95e88efd101c43bb55c8584fa2bf2ccbff718401 (diff) | |
download | gcc-3b35764639e5ada3cb9af920e9c30d4ec0b6a104.zip gcc-3b35764639e5ada3cb9af920e9c30d4ec0b6a104.tar.gz gcc-3b35764639e5ada3cb9af920e9c30d4ec0b6a104.tar.bz2 |
re PR middle-end/32492 (attribute always_inline -> sorry, unimplemented: recursive inlining)
2007-06-27 Richard Guenther <rguenther@suse.de>
PR middle-end/32492
* tree.h (fold_convertible_p): Declare.
* fold-const.c (fold_convertible_p): New function.
* gimplify.c (gimplify_call_expr): Use fold_convertible_p
instead of lang_hooks.types_compatible_p.
* gcc.dg/inline-22.c: New testcase.
From-SVN: r126054
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 7f5615e..d935ec1 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -2141,8 +2141,7 @@ gimplify_call_expr (tree *expr_p, tree *pre_p, bool want_value) if (!p || TREE_VALUE (p) == error_mark_node || CALL_EXPR_ARG (*expr_p, i) == error_mark_node - || !lang_hooks.types_compatible_p - (TREE_TYPE (CALL_EXPR_ARG (*expr_p, i)), TREE_VALUE (p))) + || !fold_convertible_p (TREE_VALUE (p), CALL_EXPR_ARG (*expr_p, i))) { CALL_CANNOT_INLINE_P (*expr_p) = 1; break; @@ -2155,8 +2154,7 @@ gimplify_call_expr (tree *expr_p, tree *pre_p, bool want_value) if (!p || p == error_mark_node || CALL_EXPR_ARG (*expr_p, i) == error_mark_node - || !lang_hooks.types_compatible_p - (TREE_TYPE (CALL_EXPR_ARG (*expr_p, i)), TREE_TYPE (p))) + || !fold_convertible_p (TREE_TYPE (p), CALL_EXPR_ARG (*expr_p, i))) { CALL_CANNOT_INLINE_P (*expr_p) = 1; break; |