From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18993 invoked by alias); 30 Jul 2006 13:48:06 -0000 Received: (qmail 18964 invoked by uid 48); 30 Jul 2006 13:47:58 -0000 Date: Sun, 30 Jul 2006 13:48:00 -0000 Subject: [Bug tree-optimization/28544] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1309 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tbm at cyrius dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg02288.txt.bz2 List-Id: 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 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