This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

label question


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]