This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/21513] pthread_cleanup_push macro generates warning when -Wclobbered is set
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 25 May 2017 09:26:00 +0000
- Subject: [Bug nptl/21513] pthread_cleanup_push macro generates warning when -Wclobbered is set
- Auto-submitted: auto-generated
- References: <bug-21513-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21513
--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Andreas Schwab from comment #2)
> The variables are used after sigsetjmp returned the second time, so this is
> a real bug.
Is it? Why don't we save callee-saved variables in the jump buffer? Shouldn't
this enable fixing the issue (perhaps with a little help from GCC for
returns_twice function calls)?
If GCC recognizes the situation to the degree that it can issue a warning, why
doesn't it generate code which does not have the problem?
--
You are receiving this mail because:
You are on the CC list for the bug.