aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-18 15:25:02 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2008-01-18 15:25:02 +0000
commit1ea193c21f060b7e7837138122b24c9d07f57d57 (patch)
treef599ef6905608f93f1d83e94f82e9ef89480d5b3 /gcc/function.h
parentc27fb14bda0b2c82c0fe8413e3e2f805c1d58975 (diff)
downloadgcc-1ea193c21f060b7e7837138122b24c9d07f57d57.zip
gcc-1ea193c21f060b7e7837138122b24c9d07f57d57.tar.gz
gcc-1ea193c21f060b7e7837138122b24c9d07f57d57.tar.bz2
re PR c++/33407 (C++ operator new and new expression do not change dynamic type)
PR c++/33407 ./: * tree.h (DECL_IS_OPERATOR_NEW): Define. (struct tree_function_decl): Add new field operator_new_flag. * tree-inline.c (expand_call_inline): When inlining a call to operator new, force the return value to go into a variable, and set DECL_NO_TBAA_P on that variable. * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag. cp/: * decl.c (duplicate_decls): Copy DECL_IS_OPERATOR_NEW flag. (grok_op_properties): For NEW_EXPR and VEC_NEW_EXPR set DECL_IS_OPERATOR_NEW flag. testsuite/: * g++.dg/init/new26.C: New test. From-SVN: r131629
Diffstat (limited to 'gcc/function.h')
0 files changed, 0 insertions, 0 deletions