From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28432 invoked by alias); 26 Jul 2011 19:29:33 -0000 Received: (qmail 28423 invoked by uid 22791); 26 Jul 2011 19:29:32 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Tue, 26 Jul 2011 19:29:18 +0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/49853] [x32] PIC doesn't work with external symbol X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: CC Message-ID: In-Reply-To: References: 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: Tue, 26 Jul 2011 19:29: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-07/txt/msg02275.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49853 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ubizjak at gmail dot com --- Comment #2 from H.J. Lu 2011-07-26 19:29:0= 1 UTC --- Another testcase: [hjl@gnu-6 ilp32-10]$ cat x.i=20 typedef struct FILE FILE; int _fwalk(int (*)(FILE *)); int __sflush(FILE *); int fflush(FILE *fp) { return (_fwalk(__sflush)); } [hjl@gnu-6 ilp32-10]$ make /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -g -fPIC -dp x.i x.i: In function =E2=80=98fflush=E2=80=99: x.i:8:1: internal compiler error: in simplify_subreg, at simplify-rtx.c:5417 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make: *** [x.s] Error 1 [hjl@gnu-6 ilp32-10]$