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
On Nov 21 2017, Florian Weimer <fweimer@redhat.com> wrote:
> I think the standard assumes that storage for all local variables is
> allocated when the function is entered (or when a scope is entered with
> which contains a variable of variably modified type). This is certainly
> an odd requirement.
Since there is a sequence point after the initialisation of the local
variables they need to exist afterwards.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."