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]

Re: linux version 2.1.114 exposes bug in all versions of gcc?


Benjamin Redelings I <bredelin@ucsd.edu> said:
> Hi, have you seen these excerpts from pre-patch-2.1.115?    Apparently in
> 2.1.114 the SPIN_LOCK_UNLOCKED caused gcc problems if it was defined as {
> }; (don't trust me on this though).  The error messages were:

The problem was an INIT_LOCKS defined as nothing that sat between two ','
in 2.1.114. The base problem (that leads to the ugly hack with INIT_LOCKS
is that gcc-2.7.2.x crashes when empty structures are initialized with {}
inside certain structure/union nestings. egcs is fine, I posted two patches
to 2.1.114 that fix this. My second one looks like this stuff, but leaves
spinlock_t empty for recent compilers (as it was before).
-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513



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