I get the following gcc 4.2 regression: 11031:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c -O2 mysql-sp_cache.cc mysql-sp_cache.cc: In function 'void sp_cache_invalidate()': mysql-sp_cache.cc:20: 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. 11032:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c -O mysql-sp_cache.cc 11033:[EMAIL PROTECTED]: ~] g++-4.1 -c -O2 mysql-sp_cache.cc 11034:[EMAIL PROTECTED]: ~] g++-4.0 -c -O2 mysql-sp_cache.cc 11035:[EMAIL PROTECTED]: ~] cat mysql-sp_cache.cc 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); }
-- Summary: [4.2 regression] ICE in add_virtual_operand, at tree- ssa-operands.c:1309 Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tbm at cyrius dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28544