bad generation of stabs under i386-coff with -O2 -finline-functions

Mark Mitchell mark@markmitchell.com
Tue Oct 13 09:05:00 GMT 1998


  Consider the following code:
  // a.C
  static struct object
	  {
	  object()
		  {
		  exit(0);
		  }
	  } o;

  // b.C
  int main()
	  {
	  abort();
	  }


By the way, this code isn't portable anyways.  There's nothing in the
standard that says `o' has to be initialized before the first call to
a function in `a.o'. 

-- 
Mark Mitchell 			mark@markmitchell.com
Mark Mitchell Consulting	http://www.markmitchell.com



More information about the Gcc-bugs mailing list