public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/63824] New: [5.0 Regression]: ICE with -mcmodel=large -fpic and pseudo PIC
@ 2014-11-11 18:17 ubizjak at gmail dot com
  2014-11-11 18:20 ` [Bug target/63824] " ubizjak at gmail dot com
  2014-11-11 18:35 ` ubizjak at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2014-11-11 18:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63824

            Bug ID: 63824
           Summary: [5.0 Regression]: ICE with -mcmodel=large -fpic and
                    pseudo PIC
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ubizjak at gmail dot com

This ICE can be seen in [1] as FAIL: g++.dg/other/pr53811.C on Darwin, but can
be triggered also on x86_64 linux with -mcmodel=large -fpic

The problem starts in x86_output_mi_thunk, where we have:

      if (ix86_cmodel == CM_LARGE_PIC && SYMBOLIC_CONST (fnaddr))
    fnaddr = legitimize_pic_address (fnaddr,
                     gen_rtx_REG (Pmode, tmp_regno));

and legitimize_pic_address does:

13537         if (reg != 0)
13538           {
13539             new_rtx = expand_simple_binop (Pmode, PLUS, reg,
pic_offset_table_rtx,
13540                                            tmpreg, 1, OPTAB_DIRECT);
13541             new_rtx = reg;
13542           }

Please note that x86_output_mi_thunk runs after reload, and the above code
emits RTX with a pseudo pic_offset_table_rtx register.

[1] https://gcc.gnu.org/ml/gcc-testresults/2014-11/msg01024.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/63824] [5.0 Regression]: ICE with -mcmodel=large -fpic and pseudo PIC
  2014-11-11 18:17 [Bug target/63824] New: [5.0 Regression]: ICE with -mcmodel=large -fpic and pseudo PIC ubizjak at gmail dot com
@ 2014-11-11 18:20 ` ubizjak at gmail dot com
  2014-11-11 18:35 ` ubizjak at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2014-11-11 18:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63824

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64
                 CC|                            |enkovich.gnu at gmail dot com

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Adding CC.
>From gcc-bugs-return-466419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 11 18:32:52 2014
Return-Path: <gcc-bugs-return-466419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 29847 invoked by alias); 11 Nov 2014 18:32:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 29810 invoked by uid 48); 11 Nov 2014 18:32:48 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/63824] [5.0 Regression]: ICE with -mcmodel=large -fpic and pseudo PIC
Date: Tue, 11 Nov 2014 18:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63824-4-IswPw39cKy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63824-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63824-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-11/txt/msg00891.txt.bz2
Content-length: 148

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc824

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Duplicate of pr63815?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/63824] [5.0 Regression]: ICE with -mcmodel=large -fpic and pseudo PIC
  2014-11-11 18:17 [Bug target/63824] New: [5.0 Regression]: ICE with -mcmodel=large -fpic and pseudo PIC ubizjak at gmail dot com
  2014-11-11 18:20 ` [Bug target/63824] " ubizjak at gmail dot com
@ 2014-11-11 18:35 ` ubizjak at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: ubizjak at gmail dot com @ 2014-11-11 18:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63824

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Dominique d'Humieres from comment #2)
> Duplicate of pr63815?

Yes. Let's go there.

*** This bug has been marked as a duplicate of bug 63815 ***
>From gcc-bugs-return-466421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 11 18:36:00 2014
Return-Path: <gcc-bugs-return-466421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 624 invoked by alias); 11 Nov 2014 18:36:00 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 330 invoked by uid 48); 11 Nov 2014 18:35:55 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/63815] g++.dg/other/pr53811.C fails on darwin14
Date: Tue, 11 Nov 2014 18:36:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-63815-4-sP1g5HxcWu@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63815-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63815-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-11/txt/msg00893.txt.bz2
Content-length: 445

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63815

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ubizjak at gmail dot com

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
*** Bug 63824 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-466422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 11 18:37:16 2014
Return-Path: <gcc-bugs-return-466422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3347 invoked by alias); 11 Nov 2014 18:37:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3287 invoked by uid 48); 11 Nov 2014 18:37:12 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/63815] g++.dg/other/pr53811.C fails on darwin14
Date: Tue, 11 Nov 2014 18:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget cc cf_gcchost cf_gccbuild
Message-ID: <bug-63815-4-yzn1BipJFr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63815-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63815-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-11/txt/msg00894.txt.bz2
Content-length: 1419

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63815

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-apple-darwin14       |x86_64
                 CC|                            |enkovich.gnu at gmail dot com
               Host|x86_64-apple-darwin14       |
              Build|x86_64-apple-darwin14       |

--- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> ---
This ICE can be seen in [1] as FAIL: g++.dg/other/pr53811.C on Darwin, but can
be triggered also on x86_64 linux with -mcmodel=large -fpic

The problem starts in x86_output_mi_thunk, where we have:

      if (ix86_cmodel == CM_LARGE_PIC && SYMBOLIC_CONST (fnaddr))
    fnaddr = legitimize_pic_address (fnaddr,
                     gen_rtx_REG (Pmode, tmp_regno));

and legitimize_pic_address does:

13537         if (reg != 0)
13538           {
13539             new_rtx = expand_simple_binop (Pmode, PLUS, reg,
pic_offset_table_rtx,
13540                                            tmpreg, 1, OPTAB_DIRECT);
13541             new_rtx = reg;
13542           }

Please note that x86_output_mi_thunk runs after reload, and the above code
emits RTX with a pseudo pic_offset_table_rtx register.

[1] https://gcc.gnu.org/ml/gcc-testresults/2014-11/msg01024.html
>From gcc-bugs-return-466423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 11 18:48:50 2014
Return-Path: <gcc-bugs-return-466423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14470 invoked by alias); 11 Nov 2014 18:48:50 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14427 invoked by uid 48); 11 Nov 2014 18:48:46 -0000
From: "sje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/63823] [5.0 Regression] MIPS will not build due to LRA ICE with 64 bit ABI
Date: Tue, 11 Nov 2014 18:48:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sje at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63823-4-3MKTq8GNRY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63823-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63823-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-11/txt/msg00895.txt.bz2
Content-length: 174

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc823

--- Comment #4 from Steve Ellcey <sje at gcc dot gnu.org> ---
I have now verified that the failure started with r217265.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-11 18:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-11 18:17 [Bug target/63824] New: [5.0 Regression]: ICE with -mcmodel=large -fpic and pseudo PIC ubizjak at gmail dot com
2014-11-11 18:20 ` [Bug target/63824] " ubizjak at gmail dot com
2014-11-11 18:35 ` ubizjak at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).