public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/64374] New: [5.0 regression] LTO ICE in extract_insn, at recog.c:2327
@ 2014-12-22  8:53 dimhen at gmail dot com
  2014-12-22  9:08 ` [Bug lto/64374] " pinskia at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: dimhen at gmail dot com @ 2014-12-22  8:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64374
           Summary: [5.0 regression] LTO ICE in extract_insn, at
                    recog.c:2327
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimhen at gmail dot com

r218764 PASS
r218817 FAIL, r218991 FAIL

Fedora 21 / x86_64

gcc -fpreprocessed -O3 -flto -c a.i -fPIC -DPIC -o a.o
g++ -fpreprocessed -O3 -flto -c b.ii -fPIC -DPIC -o b.o
g++ -fpreprocessed -O3 -flto -c e.ii -o e.o
g++ -flto -o x a.o b.o e.o

e.ii: In function ‘main’:
e.ii:10:1: error: unrecognizable insn:
 }
 ^
(insn 52 13 16 3 (set (reg/f:DI 5 di [orig:98 D.3984 ] [98])
        (plus:DI (reg:DI 0 ax [97])
            (symbol_ref:DI ("mOID_Params") [flags 0x2] <var_decl 0x7fe0f905f900
mOID_Params>))) a.i:13 -1
     (nil))
e.ii:10:1: internal compiler error: in extract_insn, at recog.c:2327
0xb230b8 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
    /home/dimhen/src/gcc_current/gcc/rtl-error.c:110
0xb23148 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
    /home/dimhen/src/gcc_current/gcc/rtl-error.c:118
0xad96f8 extract_insn(rtx_insn*)
    /home/dimhen/src/gcc_current/gcc/recog.c:2327
0xad97a7 extract_insn_cached(rtx_insn*)
    /home/dimhen/src/gcc_current/gcc/recog.c:2218
0x86f8c9 cleanup_subreg_operands(rtx_insn*)
    /home/dimhen/src/gcc_current/gcc/final.c:3124
0xad51b9 split_insn
    /home/dimhen/src/gcc_current/gcc/recog.c:2937
0xadd3ad split_all_insns()
    /home/dimhen/src/gcc_current/gcc/recog.c:2991
0xadd4c8 rest_of_handle_split_after_reload
    /home/dimhen/src/gcc_current/gcc/recog.c:3938
0xadd4c8 execute
    /home/dimhen/src/gcc_current/gcc/recog.c:3967
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: fatal error: /usr/local/gcc_current/bin/g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status

$ /usr/local/gcc_current/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/gcc_current/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/dimhen/src/gcc_current/configure
--prefix=/usr/local/gcc_current/ --enable-checking=yes,df,rtl
--enable-languages=c,c++,lto --enable-plugin=yes --enable-static
Thread model: posix
gcc version 5.0.0 20141220 (experimental) [trunk revision 218991] (GCC) 

$ cat a.i
typedef struct {const int m} s;
s ms[];
int i;

int *Create ( )
{
  for ( ; ms[i].m; i++ )
    f1 ( &ms[i] );
}

$ cat b.ii
extern "C" {
  typedef unsigned CPCCreate_t(int *, int);
  CPCCreate_t CPCCreate;
  int *Create();
}

unsigned CPCCreate(int *, int)
{
  Create();
}

$ cat e.ii
extern "C" {
  typedef unsigned CPCCreate_t(int, int);
  CPCCreate_t CPCCreate;
}
main() {
  CPCCreate(0, 0);
  for (;;)
    ;
}
>From gcc-bugs-return-471535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 22 08:54:27 2014
Return-Path: <gcc-bugs-return-471535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25473 invoked by alias); 22 Dec 2014 08:54:27 -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 25424 invoked by uid 48); 22 Dec 2014 08:54:23 -0000
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/63805] ICE: in extract_insn, at recog.c:2327 with -mcpu=power8
Date: Mon, 22 Dec 2014 08:54: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: dimhen 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:
Message-ID: <bug-63805-4-Ts7DbYiNoU@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63805-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63805-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-12/txt/msg02542.txt.bz2
Content-length: 297

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

--- Comment #3 from Dmitry G. Dyachenko <dimhen at gmail dot com> ---
(In reply to Dmitry G. Dyachenko from comment #2)
> I have similar error in LTO/x86_64, but stack is slightly different.

Its different issue (now PR64374)

Sorry for noise.


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

end of thread, other threads:[~2015-02-26 13:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-22  8:53 [Bug lto/64374] New: [5.0 regression] LTO ICE in extract_insn, at recog.c:2327 dimhen at gmail dot com
2014-12-22  9:08 ` [Bug lto/64374] " pinskia at gcc dot gnu.org
2014-12-22 11:03 ` dimhen at gmail dot com
2014-12-22 11:18 ` dimhen at gmail dot com
2015-01-09 11:20 ` rguenth at gcc dot gnu.org
2015-01-10 17:52 ` dimhen at gmail dot com
2015-01-13 10:54 ` rguenth at gcc dot gnu.org
2015-01-13 15:08 ` jakub at gcc dot gnu.org
2015-01-18 22:51 ` hubicka at gcc dot gnu.org
2015-02-20  7:59 ` [Bug lto/64374] [5 Regression] " jakub at gcc dot gnu.org
2015-02-24 15:09 ` jakub at gcc dot gnu.org
2015-02-24 19:43 ` jakub at gcc dot gnu.org
2015-02-25  9:44 ` jakub at gcc dot gnu.org
2015-02-25  9:51 ` jakub at gcc dot gnu.org
2015-02-25 10:35 ` dimhen at gmail dot com
2015-02-26 14:17 ` jakub at gcc dot gnu.org

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).