This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] pthread_cleanup_push macro generates warning when -Wclobbered is set
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Paul Carroll <Paul_Carroll at mentor dot com>, <libc-alpha at sourceware dot org>
- Date: Tue, 14 Nov 2017 21:47:03 +0000
- Subject: Re: [PATCH] pthread_cleanup_push macro generates warning when -Wclobbered is set
- Authentication-results: sourceware.org; auth=none
- References: <3255e05c-196f-be61-799d-ad64828a721a@mentorg.com> <17ece02a-c5fd-21f0-f5ca-6511e9fa768b@redhat.com>
On Tue, 14 Nov 2017, Florian Weimer wrote:
> Your test case already used an indirect call before the change with GCC 7. I
> think we should try to fix this in GCC. GCC 4.8 used to generate a direct
> call here, so this is a minor regression in the area of security hardening.
How do you suggest the compiler could tell that longjmp is only ever
called from the same iteration of the outer loop as setjmp?
--
Joseph S. Myers
joseph@codesourcery.com