[Bug tree-optimization/28544] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1309

tbm at cyrius dot com gcc-bugzilla@gcc.gnu.org
Sun Jul 30 13:48:00 GMT 2006


I get the following gcc 4.2 regression:

11031:tbm@deprecation: ~] /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:tbm@deprecation: ~] /usr/lib/gcc-snapshot/bin/g++ -c -O mysql-sp_cache.cc
11033:tbm@deprecation: ~] g++-4.1 -c -O2 mysql-sp_cache.cc
11034:tbm@deprecation: ~] g++-4.0 -c -O2 mysql-sp_cache.cc
11035:tbm@deprecation: ~] 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



More information about the Gcc-bugs mailing list