This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PRs middle-end/15014 and middle-end/16973, removinglabels with their address taken
On Tue, 5 Oct 2004, Jeffrey A Law wrote:
> Didn't we decide to disallow taking the addresses of user labels
> for use by anything but control flow statements? That would
> make this code ill-formed.
The stated use of differences of local labels
<http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01143.html> (and thread) is
for static tables of such (e.g. glibc/stdio-common/vfprintf.c) - which
rather suggests cases such as this are valid even though we do not care
what value the difference has since there are no computed gotos present
that might use it.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)