This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Disallow inlining if static vars in that function contain addresses of that function's labels (PR tree-optimization/29484)
Mark Mitchell <firstname.lastname@example.org> writes:
> That's a compelling argument, if existing usage has been that nobody
> cares about address quality. If so, then the manual ought to explicitly
> say that you cannot rely on the addresses of labels being the same, and
> should not do comparison between them. So, if you want to proceed with
> your original patch, then I think it ought to come with a patch to the
> manual as well.
Addresses of labels are only meaningful within the same function. We
already move them around when the function isn't actually using a
computed goto, so this can be regarded as a variant of that feature.
Andreas Schwab, SuSE Labs, email@example.com
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."