mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 13:49:46 +08:00
PR c++/3948 -- C++ ABI change, followup to 2001-12-18 patch.
* class.c (finish_struct_bits): Also set TREE_ADDRESSABLE for a type with a nontrivial destructor. From-SVN: r50964
This commit is contained in:
parent
91f3a802eb
commit
fd70bb6453
@ -42,7 +42,10 @@
|
||||
|
||||
* The C++ ABI has been changed so that when a parameter is passed by value,
|
||||
any cleanup for that parameter is performed in the caller, as specified
|
||||
by the ia64 C++ ABI, rather than the called function as before.
|
||||
by the ia64 C++ ABI, rather than the called function as before. As a
|
||||
result, classes with a non-trivial destructor but a trivial copy
|
||||
constructor will be passed and returned by invisible reference, rather
|
||||
than by bitwise copy as before.
|
||||
|
||||
* G++ now supports the "named return value optimization": for code like
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user