public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/60720] New: clisp fails to build with -flto: internal compiler error: tree check: expected array_type, have record_type in array_ref_low_bound, at expr.c:6941
Date: Mon, 31 Mar 2014 12:41:00 -0000	[thread overview]
Message-ID: <bug-60720-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60720

            Bug ID: 60720
           Summary: clisp fails to build with -flto: internal compiler
                    error: tree check: expected array_type, have
                    record_type in array_ref_low_bound, at expr.c:6941
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: lto
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org

Created attachment 32496
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32496&action=edit
testcase

compile with -flto:

> ./xgcc -B. regexi.m.i modules.i -flto 
modules.h:4:316: warning: type of 'module__regexp__object_tab_initdata' does
not match original declaration
/home/abuild/rpmbuild/BUILD/clisp-2.49/modules/regexp/regexi.c:59:3: note:
previously declared here
modules.h:4:254: warning: type of 'module__regexp__subr_tab_initdata' does not
match original declaration
/home/abuild/rpmbuild/BUILD/clisp-2.49/modules/regexp/regexi.c:173:3: note:
previously declared here
modules.h:4:154: warning: type of 'module__regexp__object_tab' does not match
original declaration
/home/abuild/rpmbuild/BUILD/clisp-2.49/modules/regexp/regexi.c:42:3: note:
previously declared here
modules.h:4:63: warning: type of 'module__regexp__subr_tab' does not match
original declaration
/home/abuild/rpmbuild/BUILD/clisp-2.49/modules/regexp/regexi.c:153:35: note:
previously declared here
lto1: internal compiler error: tree check: expected array_type, have
record_type in array_ref_low_bound, at expr.c:6941
0xd8ac7f tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /space/rguenther/src/svn/trunk/gcc/tree.c:9192
0x60b229 tree_check(tree_node*, char const*, int, char const*, tree_code)
        /space/rguenther/src/svn/trunk/gcc/tree.h:2713
0x79d6ae array_ref_low_bound(tree_node*)
        /space/rguenther/src/svn/trunk/gcc/expr.c:6941
0x79cf1e get_inner_reference(tree_node*, long*, long*, tree_node**,
machine_mode*, int*, int*, bool)
        /space/rguenther/src/svn/trunk/gcc/expr.c:6791
0x79fe95 expand_expr_addr_expr_1
        /space/rguenther/src/svn/trunk/gcc/expr.c:7689
0x7a0550 expand_expr_addr_expr
        /space/rguenther/src/svn/trunk/gcc/expr.c:7783
0x7ab686 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /space/rguenther/src/svn/trunk/gcc/expr.c:10562
0x7a09ce expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        /space/rguenther/src/svn/trunk/gcc/expr.c:7950
0xdbe930 expand_expr
        /space/rguenther/src/svn/trunk/gcc/expr.h:457
0xdcbeb3 output_constant
        /space/rguenther/src/svn/trunk/gcc/varasm.c:4706
0xdccd4b output_constructor_regular_field
        /space/rguenther/src/svn/trunk/gcc/varasm.c:4952
0xdcd711 output_constructor
        /space/rguenther/src/svn/trunk/gcc/varasm.c:5231
0xdcc3fe output_constant
        /space/rguenther/src/svn/trunk/gcc/varasm.c:4756
0xdccd4b output_constructor_regular_field
        /space/rguenther/src/svn/trunk/gcc/varasm.c:4952
0xdcd711 output_constructor
        /space/rguenther/src/svn/trunk/gcc/varasm.c:5231
0xdcc0d5 output_constant
        /space/rguenther/src/svn/trunk/gcc/varasm.c:4728
0xdc3b00 assemble_variable_contents
        /space/rguenther/src/svn/trunk/gcc/varasm.c:1954
0xdc43e9 assemble_variable(tree_node*, int, int, int)
        /space/rguenther/src/svn/trunk/gcc/varasm.c:2139
0xdd5155 varpool_assemble_decl(varpool_node*)
        /space/rguenther/src/svn/trunk/gcc/varpool.c:455
0x6cb6fb output_in_order
        /space/rguenther/src/svn/trunk/gcc/cgraphunit.c:2010
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: ./xgcc returned 1 exit status
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:
lto-wrapper failed
collect2: error: ld returned 1 exit status


             reply	other threads:[~2014-03-31 12:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-31 12:41 rguenth at gcc dot gnu.org [this message]
2014-03-31 12:49 ` [Bug lto/60720] " rguenth at gcc dot gnu.org
2014-03-31 13:13 ` rguenth at gcc dot gnu.org
2014-04-14  8:36 ` rguenth at gcc dot gnu.org
2014-04-14  8:40 ` rguenth at gcc dot gnu.org
2014-04-23  8:32 ` rguenth at gcc dot gnu.org
2014-04-23  8:34 ` rguenth at gcc dot gnu.org
2014-04-23  8:34 ` rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-60720-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).