This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: linux version 2.1.114 exposes bug in all versions of gcc?
- To: Benjamin Redelings I <bredelin at ucsd dot edu>
- Subject: Re: linux version 2.1.114 exposes bug in all versions of gcc?
- From: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Date: Wed, 05 Aug 1998 14:01:55 -0400
- cc: egcs at cygnus dot com
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