linux-2.3.3 doesn't boot when compiled with egcs-2.93.22

Jeffrey A Law law@upchuck.cygnus.com
Mon May 24 08:11:00 GMT 1999


  In message < m33e0mtye6.fsf@fred.muc.de >you write:
  > davem@redhat.com (David S. Miller) writes:
  > 
  > >    From: mark@codesourcery.com
  > >    Date: Mon, 24 May 1999 01:26:25 -0700
  > > 
  > >    Perhaps it would be a good long-term goal to eliminate this stuff,
  > >    replacing it with assembly where necessary?
  > > 
  > > Certainly, and just like I said, in the 2.3.x development series not
  > > the stable 2.2.x series.
  > 
  > The problem is that the Kernel makefile currently has no way to detect
  > the compiler version used (kernel has no configure). Passing -fno-strict-al
  > ias
  > to a gcc 2.7.2 wouldn't be a good idea. So to implement it you need a mini
  > configure or a similar trick. 
  > 
  > Or go the easy way:
  > 
  > #if __GNUC__ >= 2 && GNUC_MINOR >= 9 && !defined(CONFIG_EGCS)
  > #error "you need to compile with CONFIG_EGCS"
  > #endif
IMHO is probably the cleanest solution since the kernel does not have any
way to determine this stuff automagicly.


jeff


More information about the Gcc-bugs mailing list