Re: [Etherboot-developers] tidy ups
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: <ebi...@ln...> - 2003-03-18 00:59:40
|
ke...@us... (Ken Yap) writes: > >> You sure? I thought it was legal in C now to have declarations anywhere > >> before use (oversimplifying). gcc has no complaint with this: > > > >I believe that is a C99 feature, which became available with GCC 3.0 > >(not sure about any of the 2.9.x releases): > >http://gcc.gnu.org/gcc-3.0/c99status.html O.k. I just looked at the grammar and intermixing declarations and statements became available in C99. It has been available in C++ for quite a while. > Hmm, I wonder if it's reasonable to require gcc 3 for Etherboot 5.1 and > later. It would cut down on the variations. Most recent distros ship > with gcc 3. I could also get rid of the -malign-* warnings and the > indirect call without * warning. Perhaps... I'm not really certain I like C99. I don't have anything bad to say about it, but with it C is growing and I don't think I really appreciate that. There is actually one good reason to not require gcc 3.x. gcc 3.x takes more time to generate larger code. Eric |