From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24008 invoked by alias); 8 Oct 2006 02:10:14 -0000 Received: (qmail 23981 invoked by uid 48); 8 Oct 2006 02:10:05 -0000 Date: Sun, 08 Oct 2006 02:10:00 -0000 Message-ID: <20061008021005.23980.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/29329] [4.1 regression] internal consistency failure at -O2 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" 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-10/txt/msg00612.txt.bz2 List-Id: ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-10-08 02:10 ------- (In reply to comment #0) > compilation with -O0: > > $ gcc -c -fPIC -g -O0 -g tree234.i > /tmp/cco6vA7j.s: Assembler messages: > /tmp/cco6vA7j.s:172: Error: Rn must not overlap other operands -- `swpb > r3,r2,[r3]' That is a bug in the source: asm volatile( "# here \n\t" "swpb %0, %1, [%2] \n\t" : "=r" (val) : "r"(1), "r" (lock) : "memory" ); I don't know how to fix that in the inline-asm. Maybe an early clobber can fix that. I doubt this is related to the ICE anyways. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29329