This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
label question
- To: egcs at cygnus dot com
- Subject: label question
- From: Philip Blundell <pb at nexus dot co dot uk>
- Date: Thu, 08 Apr 1999 12:28:37 +0100
Given code like this:
foo()
{
bar(&&label);
return;
label:
printf("Hello world\n");
}
is it legal for the compiler to conclude that the label is unreachable and
delete the instructions following it, even though its address has been taken?
It seems that, on ARM at least, egcs 1.1.1 doesn't exhibit this behaviour but
the current trunk version does and this is causing the Linux C library some
trouble. Is the bug in the compiler or in the library?
p.