This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/21513] pthread_cleanup_push macro generates warning when -Wclobbered is set


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]