diff options
author | Jan Hubicka <jh@suse.cz> | 2010-06-28 02:10:34 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-06-28 00:10:34 +0000 |
commit | d402c33dc1fa4ea0a9f133efdc18ae43b4b4c916 (patch) | |
tree | 6ab1c2265180e9232911690d3ba0715ff2be32d0 /gcc/tree.c | |
parent | e7041633a5b9ac8eb09b92de5321bf3184a7b98f (diff) | |
download | gcc-d402c33dc1fa4ea0a9f133efdc18ae43b4b4c916.zip gcc-d402c33dc1fa4ea0a9f133efdc18ae43b4b4c916.tar.gz gcc-d402c33dc1fa4ea0a9f133efdc18ae43b4b4c916.tar.bz2 |
re PR middle-end/44671 (Partial inlining breaks C++)
PR middle-end/44671
PR middle-end/44686
* tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on signature
change.
* ipa-split.c (split_function): Always clear DECL_BUILT_IN.
* ipa-prop.c (ipa_modify_formal_parameters): Likewise.
* gcc.c-torture/pr44686.c: New file.
From-SVN: r161476
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -7303,6 +7303,13 @@ build_function_decl_skip_args (tree orig_decl, bitmap args_to_skip) we expect first argument to be THIS pointer. */ if (bitmap_bit_p (args_to_skip, 0)) DECL_VINDEX (new_decl) = NULL_TREE; + + /* When signature changes, we need to clear builtin info. */ + if (DECL_BUILT_IN (new_decl) && !bitmap_empty_p (args_to_skip)) + { + DECL_BUILT_IN_CLASS (new_decl) = NOT_BUILT_IN; + DECL_FUNCTION_CODE (new_decl) = (enum built_in_function) 0; + } return new_decl; } |