From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29133 invoked by alias); 24 Jan 2011 22:48:46 -0000 Received: (qmail 29122 invoked by uid 22791); 24 Jan 2011 22:48:46 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Jan 2011 22:48:42 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/47449] New: [32]=?UTF-8?Q?=20can=E2=80=99t=20find=20a=20register=20in=20class=20=E2=80=98DIREG=E2=80=99=20while=20reloading=20=E2=80=98asm=E2=80=99?= X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Mon, 24 Jan 2011 23:03:00 -0000 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: 2011-01/txt/msg02538.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D47449 Summary: [32] can=E2=80=99t find a register in class =E2=80=98DI= REG=E2=80=99 while reloading =E2=80=98asm=E2=80=99 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: hjl.tools@gmail.com CC: ubizjak@gmail.com [hjl@gnu-6 ilp32-17]$ cat x.c void bar (void *); int foo (void *trans) { int ret; __asm __volatile ("foo %0\n\t" : "=3DD" (ret)); bar (trans); return ret; } [hjl@gnu-6 ilp32-17]$ make x.s /export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -dp= =20 x.c x.c: In function =E2=80=98foo=E2=80=99: x.c:6:5: error: can=E2=80=99t find a register in class =E2=80=98DIREG=E2=80= =99 while reloading =E2=80=98asm=E2=80=99 x.c:6:5: error: =E2=80=98asm=E2=80=99 operand has impossible constraints make: *** [x.s] Error 1 [hjl@gnu-6 ilp32-17]$=20 Uros, any ideas? Thanks.