diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-09-06 21:25:02 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-09-06 21:25:02 +0000 |
commit | 44835fdd5d38ae34088ca2304588382c61064558 (patch) | |
tree | 3849981f81993a14ff6789ad1a4f46090fae3c2c /gcc/cp/NEWS | |
parent | bcf98e48ef4b9eeee82ca6505153216d4b55a22b (diff) | |
download | gcc-44835fdd5d38ae34088ca2304588382c61064558.tar.gz |
extend.texi: Mark named return value extension as deprecated.
* extend.texi: Mark named return value extension as deprecated.
* NEWS: Mention that the named return value extension has been
deprecated.
* cp-tree.h (original_result_rtx): Define.
(TREE_REFERENCE_EXPR): Remove.
(DECL_VPARENT): Likewise.
(pushdecl_nonclass_level): Likewise.
(store_return_init): Likewise.
(reinit_lang_specific): Likewise.
(genrtl_named_return_value): Change prototype.
* decl.c (original_result_rtx): Remove.
(cp_finish_decl): Don't build DECL_STMTs for RESULT_DECLs.
Do not generate RTL for local variables here.
(store_return_init): Remove.
* semantics.c (genrtl_named_return_value): Simplify. Fold in
store_return_init.
(finish_named_return_value): Adjust accordingly. Warn that this
extension is deprecated.
(lang_expand_stmt): Adjust call to genrtl_named_return_value.
From-SVN: r36210
Diffstat (limited to 'gcc/cp/NEWS')
-rw-r--r-- | gcc/cp/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/NEWS b/gcc/cp/NEWS index 3a8fc4cca8a..d2c483d289c 100644 --- a/gcc/cp/NEWS +++ b/gcc/cp/NEWS @@ -36,6 +36,12 @@ * G++ no longer allows you to overload the conditional operator (i.e., the `?:' operator.) +* The "named return value" extension: + + int f () return r { r = 3; } + + has been deprecated, and will be removed in a future version of G++. + *** Changes in GCC 2.95: * Messages about non-conformant code that we can still handle ("pedwarns") |