Package: gcc-snapshot Version: 20060721-1 PR28544
> Automatic build of mysql-dfsg-5.0_5.0.22-4 on usurper by sbuild/amd64 0.46 ... > if g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr\"" > -DDATADIR="\"/var/lib/mysql\"" -DSHAREDIR="\"/usr/share/mysql\"" > -DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../ndb/include > -I../ndb/include/ndbapi -I../ndb/include/mgmapi -I../include -I../include > -I../regex -I. -I../extra/yassl/include -DDBUG_OFF -DBIG_JOINS=1 > -felide-constructors -fno-rtti -O2 -fno-implicit-templates -fno-exceptions > -fno-rtti -MT sp_cache.o -MD -MP -MF ".deps/sp_cache.Tpo" -c -o sp_cache.o > sp_cache.cc; \ > then mv -f ".deps/sp_cache.Tpo" ".deps/sp_cache.Po"; else rm -f > ".deps/sp_cache.Tpo"; exit 1; fi > sp_cache.cc: In function 'void sp_cache_invalidate()': > sp_cache.cc:178: internal compiler error: in add_virtual_operand, at > tree-ssa-operands.c:1309 > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://gcc.gnu.org/bugs.html> for instructions. > For Debian GNU/Linux specific bug reporting instructions, > see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>. > make[5]: *** [sp_cache.o] Error 1 -- Martin Michlmayr http://www.cyrius.com/
extern "C" { extern "C" { typedef unsigned long int ulong; } typedef struct { volatile int counter; } atomic_t; static __inline__ void atomic_inc (atomic_t * v) { __asm__ __volatile__ ("lock ; " "incl %0":"=m" (v->counter):"m" (v->counter)); } } static ulong volatile Cversion = 0; void sp_cache_invalidate () { atomic_inc ((atomic_t *) & Cversion); }