From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8527 invoked by alias); 17 May 2010 19:22:19 -0000 Received: (qmail 8400 invoked by uid 48); 17 May 2010 19:21:56 -0000 Date: Mon, 17 May 2010 19:22:00 -0000 Subject: [Bug rtl-optimization/44174] New: [4.4/4.5/4.6 Regression] can't find a register in class 'CLOBBERED_REGS' while reloading 'asm' X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-05/txt/msg01836.txt.bz2 /* { dg-do compile } */ /* { dg-options "-O2 -fpic" { target fpic } } */ int f0 (int, int, int, int, int); int f1 (void); void f2 (void) { unsigned v1, v2, v3, v4; __asm__ ("" : "=a" (v1), "=d" (v2), "=c" (v3), "=r" (v4)); f0 (f1 (), f1 (), f1 (), f1 (), (v4 >> 8) & 0xff); } used to compile with -m32 -O2 -fpic in 4.3, but starting with 4.4 fails with: /tmp/u.c: In function 'void f2()': /tmp/u.c:11:60: error: can't find a register in class 'CLOBBERED_REGS' while reloading 'asm' /tmp/u.c:11:60: error: 'asm' operand has impossible constraints while it should be fine to use esi or edi for that. -- Summary: [4.4/4.5/4.6 Regression] can't find a register in class 'CLOBBERED_REGS' while reloading 'asm' Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org GCC target triplet: i686-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44174