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]

linux-2.1.127pre3 and egcs-1.1 on i586


There were reports that egcs crashed when compiling this kernel, or that
the kernel got stuck on boot.

This here is i586/100, egcs-1.1, binutils-2.9.1.0.15, glibc-2.0.99
Kernel is linux-2.1.127pre3. No trouble at all.

Just a couple of odd things that stuck me when skimming the patch: In
include/asm-i386/spinlock.h the definition of spinlock_t for UP and gcc <
2.8 stuffs something into the structure to keep gcc happy, while rwlock_t
does not get the same attention. Oversight?

The corresponding definition for SPARC in include/asm-sparc/spinlock.h
defines spinlock_t as an unsigned char, that is never really used but is
passed around. Wouldn't it be better to do it like i386, where gcc
optimizes the empty structure into complete oblivion?

In any case, it would be better to pick _one_ strategy and stick to it,
IMHO.

Happy hacking!
-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616



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