[PATCH] Disallow inlining if static vars in that function contain addresses of that function's labels (PR tree-optimization/29484)

Andreas Schwab schwab@suse.de
Wed Dec 26 21:09:00 GMT 2007


Mark Mitchell <mark@codesourcery.com> 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.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
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."



More information about the Gcc-patches mailing list