This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix unsafe function attributes for special functions (PR 71876)
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 28 Jul 2016 23:14:43 +0000
- Subject: Re: [PATCH] Fix unsafe function attributes for special functions (PR 71876)
- Authentication-results: sourceware.org; auth=none
- References: <AM4PR0701MB216226C00439A01515A3AA5FE4370@AM4PR0701MB2162.eurprd07.prod.outlook.com> <AM4PR0701MB2162EA032484BB9F00425151E4370@AM4PR0701MB2162.eurprd07.prod.outlook.com>
On Tue, 19 Jul 2016, Bernd Edlinger wrote:
> It is however not possible to remove the special handling by name
> altogether, because the glibc does not add the return_twice function
> attribute on _setjmp, __sigsetjmp and getcontext until today; a glibc
> BZ is filed at: https://sourceware.org/bugzilla/show_bug.cgi?id=20382
Once you have the attribute (__returns_twice__, of course, to be
namespace-clean) in the headers, fixing old versions of the headers with
fixincludes would seem appropriate (see what projects/beginner.html says
about the special_function_p issue).
--
Joseph S. Myers
joseph@codesourcery.com