This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] Fix for PR c++/19076 and PR c++/6628
Gabriel Dos Reis wrote:
OK. It would be good to patch the documentation then.
(I came across it independently of Doug's patch, in a different
context).
Can I apply the below to the active branches?
Thanks,
Paolo.
////////////////
2005-02-22 Paolo Carlini <pcarlini@suse.de>
* doc/extend.texi (Function Attributes) <Attribute noreturn>:
Don't mention the alternative way - using a volatile return
type - which doesn't work in recent releases.
*** extend.texi.~1.240.~ Sun Feb 20 20:16:10 2005
--- extend.texi Tue Feb 22 15:50:26 2005
*************** It does not make sense for a @code{noret
*** 2024,2038 ****
type other than @code{void}.
The attribute @code{noreturn} is not implemented in GCC versions
! earlier than 2.5. An alternative way to declare that a function does
! not return, which works in the current version and in some older
! versions, is as follows:
!
! @smallexample
! typedef void voidfn ();
!
! volatile voidfn fatal;
! @end smallexample
@item nothrow
@cindex @code{nothrow} function attribute
--- 2024,2030 ----
type other than @code{void}.
The attribute @code{noreturn} is not implemented in GCC versions
! earlier than 2.5.
@item nothrow
@cindex @code{nothrow} function attribute