public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/63882] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:395
@ 2014-11-15  6:42 aiencai at 126 dot com
  2014-11-15  6:56 ` [Bug libgcc/63882] " mpolacek at gcc dot gnu.org
  2014-11-19  9:25 ` aiencai at 126 dot com
  0 siblings, 2 replies; 3+ messages in thread
From: aiencai at 126 dot com @ 2014-11-15  6:42 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63882
           Summary: internal compiler error: in int_mode_for_mode, at
                    stor-layout.c:395
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: aiencai at 126 dot com

Created attachment 33981
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33981&action=edit
preprocessed file

I  got this error while compling gcc-4.9.2 on my mipsel-linux platform.
../../.././libgcc/libgcc2.c: In function '__mulvdi3':
../../.././libgcc/libgcc2.c:395:1: warning: 'vn_top.0' may be used
uninitialized in this function [-Wmaybe-uninitialized]
 }
 ^
../../.././libgcc/libgcc2.c:303:12: internal compiler error: in
int_mode_for_mode, at stor-layout.c:395
      w1.ll -= vv.ll;
            ^
0x12050d353 int_mode_for_mode(machine_mode)
    ../.././gcc/stor-layout.c:647
0x120299e43 emit_move_via_integer
    ../.././gcc/vec.h:252
0x12029a043 emit_move_insn_1(rtx_def*, rtx_def*)
    ../.././gcc/vec.h:252
0x12029a56f emit_move_insn(rtx_def*, rtx_def*)
    ../.././gcc/vec.h:252
0x1202a382b expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
    ../.././gcc/vec.h:252
0x1202a4b97 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
    ../.././gcc/vec.h:252
0x1202a6763 expand_expr
    ../.././gcc/vec.h:252
0x1202a6763 expand_operands
    ../.././gcc/expr.c:7545
0x1202aab2b expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
    ../.././gcc/vec.h:252
0x1202a22b3 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
    ../.././gcc/vec.h:252
0x1202a4b97 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
    ../.././gcc/vec.h:252
0x12029fc7b expand_normal
    ../.././gcc/vec.h:252
0x12029fc7b store_field
    ../.././gcc/expr.c:6561
0x1202a917f expand_assignment(tree_node*, tree_node*, bool)
    ../.././gcc/vec.h:252
0x1201a9fa7 expand_gimple_stmt_1
    ../.././gcc/cfgexpand.c:4300
0x1201a9fa7 expand_gimple_stmt
    ../.././gcc/cfgexpand.c:3322
0x1201ab77b expand_gimple_basic_block
    ../.././gcc/cfgexpand.c:4300
0x1201b0db7 gimple_expand_cfg
    ../.././gcc/cfgexpand.c:4300
0x1201b0db7 execute
    ../.././gcc/cfgexpand.c:5961
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.

The complete command line that triggers the error is 
/root/gcc-4.9.2/host-mips64el-neokylin-linux/gcc/xgcc -save-temps
-B/root/gcc-4.9.2/host-mips64el-neokylin-linux/gcc/
-B/usr/mips64el-neokylin-linux/bin/ -B/usr/mips64el-neokylin-linux/lib/
-isystem /usr/mips64el-neokylin-linux/include -isystem
/usr/mips64el-neokylin-linux/sys-include    -g -O2 -minterlink-mips16 -mabi=32
-O2  -g -O2 -minterlink-mips16 -DIN_GCC    -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include   -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  
-fPIC -I. -I. -I../../../host-mips64el-neokylin-linux/gcc -I../../.././libgcc
-I../../.././libgcc/. -I../../.././libgcc/../gcc -I../../.././libgcc/../include
 -DHAVE_CC_TLS  -o _mulvdi3.o -MT _mulvdi3.o -MD -MP -MF _mulvdi3.dep
-DL_mulvdi3 -c ../../.././libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS

These are my configuration options
configured by ./configure, generated by GNU Autoconf 2.64,
  with options " '--prefix=/usr' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--disable-bootstrap' '--enable-shared'
'--enable-threads=posix' '--enable-checking=release' '--enable-multilib'
'--with-system-zlib' '--enable-__cxa_atexit' '--disable-libunwind-exceptions'
'--enable-gnu-unique-object' '--enable-linker-build-id' '--enable-plugin'
'--disable-initfini-array' '--disable-libgcj' '--without-ppl' '--without-cloog'
'--with-mpc=/root/gcc-4.9.2/mpc-install' '--with-abi=64'
'--build=mips64el-neokylin-linux' 'build_alias=mips64el-neokylin-linux'
'--enable-languages=c,c++,lto'"

These are my configuration options for mpc-1.0.2
configured by ../configure, generated by GNU Autoconf 2.69,
  with options "'--disable-shared' 'CFLAGS=-O2 -g' 'CXXFLAGS=-O2 -g'
'--build=mips64el-neokylin-linux' '--prefix=/root/gcc-4.9.2/mpc-install'
'build_alias=mips64el-neokylin-linux'"


I don't know if there is a link between this and bug57108 but I get some points
of the error, hopefully it's helpful.

1.I got the same error message in all 32、n32、64 abis on mips.
2.Everything work just fine when I add '-O0‘ at the end of command to
optimization prevention.
3.I don't know if there is relationship about the mpc, but everything work fine
when I use the mpc-0.8.1 installed in my system.
>From gcc-bugs-return-466829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Nov 15 06:49:47 2014
Return-Path: <gcc-bugs-return-466829-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25434 invoked by alias); 15 Nov 2014 06:49:47 -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 25418 invoked by uid 48); 15 Nov 2014 06:49:43 -0000
From: "aiencai at 126 dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcc/63882] internal compiler error: in int_mode_for_mode, at stor-layout.c:395
Date: Sat, 15 Nov 2014 06:49:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libgcc
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: critical
X-Bugzilla-Who: aiencai at 126 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-Flags:
X-Bugzilla-Changed-Fields: bug_severity
Message-ID: <bug-63882-4-Nh0MhONoyX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63882-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63882-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/msg01301.txt.bz2
Content-length: 276

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

aiencai at 126 dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical


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

* [Bug libgcc/63882] internal compiler error: in int_mode_for_mode, at stor-layout.c:395
  2014-11-15  6:42 [Bug libgcc/63882] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:395 aiencai at 126 dot com
@ 2014-11-15  6:56 ` mpolacek at gcc dot gnu.org
  2014-11-19  9:25 ` aiencai at 126 dot com
  1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-11-15  6:56 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org
           Severity|critical                    |normal


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

* [Bug libgcc/63882] internal compiler error: in int_mode_for_mode, at stor-layout.c:395
  2014-11-15  6:42 [Bug libgcc/63882] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:395 aiencai at 126 dot com
  2014-11-15  6:56 ` [Bug libgcc/63882] " mpolacek at gcc dot gnu.org
@ 2014-11-19  9:25 ` aiencai at 126 dot com
  1 sibling, 0 replies; 3+ messages in thread
From: aiencai at 126 dot com @ 2014-11-19  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from aiencai at 126 dot com ---
According to further exploration,mpc has nothing to do with this problem. This
problem is caused by configuration options '--disable-bootstrap' and
'--enable-languages=c++,lto'
>From gcc-bugs-return-467338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Nov 19 09:28:07 2014
Return-Path: <gcc-bugs-return-467338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19230 invoked by alias); 19 Nov 2014 09:28:07 -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 19179 invoked by uid 55); 19 Nov 2014 09:28:04 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/63913] [5 Regression] ICE: verify_gimple failed: statement marked for throw, but doesn't with -fnon-call-exceptions -fsanitize=bool
Date: Wed, 19 Nov 2014 09:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-63913-4-KvWqOyvibO@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63913-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63913-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/msg01810.txt.bz2
Content-length: 557

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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Nov 19 09:27:30 2014
New Revision: 217755

URL: https://gcc.gnu.org/viewcvs?rev!7755&root=gcc&view=rev
Log:
    PR sanitizer/63913
    * ubsan.c: Include tree-eh.h.
    (instrument_bool_enum_load): Handle loads that can throw.

    * g++.dg/ubsan/pr63913.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/pr63913.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/ubsan.c


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

end of thread, other threads:[~2014-11-19  9:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-15  6:42 [Bug libgcc/63882] New: internal compiler error: in int_mode_for_mode, at stor-layout.c:395 aiencai at 126 dot com
2014-11-15  6:56 ` [Bug libgcc/63882] " mpolacek at gcc dot gnu.org
2014-11-19  9:25 ` aiencai at 126 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).