From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25431 invoked by alias); 3 Aug 2011 14:27:16 -0000 Received: (qmail 25420 invoked by uid 22791); 3 Aug 2011 14:27:15 -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; Wed, 03 Aug 2011 14:26:57 +0000 From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/49963] New: ICE: in abs_hwi, at hwint.c:108 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl 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-Changed-Fields: Message-ID: 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: Wed, 03 Aug 2011 14:27: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-08/txt/msg00375.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49963 Summary: ICE: in abs_hwi, at hwint.c:108 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: gjl@gcc.gnu.org Host: x86-linux-gnu Target: avr Build: x86-linux-gnu Observed this ICE in the test suite for 4.7 trunk r177267 after upgrading f= rom 177070: gcc.c-torture/execute/divconst-2.c: In function 'std_eqn': gcc.c-torture/execute/divconst-2.c:20:3: internal compiler error: in abs_hw= i, at hwint.c:108 FAIL: gcc.c-torture/execute/divconst-2.c compilation, -O0 (internal compi= ler error) FAIL: gcc.c-torture/execute/divconst-2.c compilation, -O1 (internal compi= ler error) FAIL: gcc.c-torture/execute/divconst-2.c compilation, -O2 (internal compi= ler error) ... =3D=3D configure =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Target: avr Configured with: ../../gcc.gnu.org/trunk/configure --target=3Davr --prefix=3D/local/gnu/install/gcc-4.7 --disable-nls --disable-shared --enable-languages=3Dc,c++ --with-dwarf2 --disable-lto Thread model: single gcc version 4.7.0 20110803 (experimental) (GCC) GNU C (GCC) version 4.7.0 20110803 (experimental) (avr) compiled by GNU C version 4.3.2 [gcc-4_3-branch revision 141291], G= MP version 5.0.1, MPFR version 3.0.0-p8, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=3D30 --param ggc-min-heapsize=3D4096 =3D=3D hwint.c:abs_hwi() =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D hwint.c:abs_hwi() reads /* Compute the absolute value of X. */ HOST_WIDE_INT abs_hwi (HOST_WIDE_INT x) { gcc_checking_assert (x !=3D HOST_WIDE_INT_MIN); return x >=3D 0 ? x : -x; } =3D=3D Backtrace =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #0 fancy_abort (file=3D0x8890660 "../../../gcc.gnu.org/trunk/gcc/hwint.c", line=3D108, function=3D0x889069b "abs_hwi") at ../../../gcc.gnu.org/trunk/gcc/diagnostic.c:893 #1 0x08395087 in abs_hwi (x=3D-2147483648) at ../../../gcc.gnu.org/trunk/gcc/hwint.c:108 #2 0x08306e8a in fold_plusminus_mult_expr (loc=3D2983, code=3DPLUS_EXPR, type=3D0xb7d5d420, arg0=3D0xb7dcdcb0, arg1=3D0xb7dce24c) at ../../../gcc.gnu.org/trunk/gcc/fold-const.c:7040 #3 0x082bbef6 in fold_binary_loc (loc=3D2983, code=3DPLUS_EXPR, type=3D0xb= 7d5d420, op0=3D0xb7dcdcb0, op1=3D0xb7dce24c) at ../../../gcc.gnu.org/trunk/gcc/fold-const.c:9685 #4 0x083174d5 in fold (expr=3D0xb7dcdccc) at ../../../gcc.gnu.org/trunk/gcc/fold-const.c:13666 #5 0x0813c46c in c_fully_fold_internal (expr=3D0xb7dcdccc, in_init=3D0 '\0= ', maybe_const_operands=3D0xbfffdf4b "\001\030", maybe_const_itself=3D0xbfffde= 6a "\001\001=C3=8C=C3=9C=C3=9C=C2=B7 =C3=94=C3=95=C2=B7") at ../../../gcc.gnu.= org/trunk/gcc/c-family/c-common.c:1238 #6 0x0813d19b in c_fully_fold (expr=3D0xb7dcdccc, in_init=3D212 '=C3=94', maybe_const=3D0xbfffdf4b "\001\030") at ../../../gcc.gnu.org/trunk/gcc/c-family/c-common.c:1029 #7 0x080eadcb in build_binary_op (location=3D2989, code=3DEQ_EXPR, orig_op0=3D0xb7dcdccc, orig_op1=3D0xb7dce150, convert_p=3D1) at ../../../gcc.gnu.org/trunk/gcc/c-typeck.c:10172 #8 0x080ef279 in parser_build_binary_op (location=3D2989, code=3DEQ_EXPR, arg1=3D{value =3D 0xb7dcdccc, original_code =3D PLUS_EXPR, original_type = =3D 0x0}, arg2=3D{value =3D 0xb7dce150, original_code =3D ERROR_MARK, original_type = =3D 0xb7d5d420}) at ../../../gcc.gnu.org/trunk/gcc/c-typeck.c:3218 #9 0x080fbe57 in c_parser_binary_expression (parser=3D0xb7dcda9c, after=3D= , prec=3DPREC_NONE) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:5663 #10 0x080fc49f in c_parser_conditional_expression (parser=3D0xb7dcda9c, after=3D0x80000000) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:5330 #11 0x080fc9c8 in c_parser_expr_no_commas (parser=3D0xb7dcda9c, after=3D0x8= 0000000) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:5250 #12 0x080fce68 in c_parser_expression (parser=3D0xb7d97dd4) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:6716 #13 0x080fe5f3 in c_parser_expression_conv (parser=3D0xb7dcda9c) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:6747 #14 0x080f887a in c_parser_statement_after_labels (parser=3D0xb7dcda9c) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:4416 #15 0x080f997a in c_parser_compound_statement_nostart (parser=3D0xb7dcda9c)= at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:4147 #16 0x08107852 in c_parser_compound_statement (parser=3D0xb7dcda9c) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:3984 #17 0x080f7fc3 in c_parser_declaration_or_fndef (parser=3D0xb7dcda9c, fndef= _ok=3D1 '\001', static_assert_ok=3D, empty_ok=3D1 '\001', nest= ed=3D0 '\0', start_attr_ok=3D, objc_foreach_object_declaratio= n=3D0x0) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:1749 #18 0x081081da in c_parser_external_declaration (parser=3D0xb7dcda9c) at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:1354 #19 0x08108a1b in c_parse_file () at ../../../gcc.gnu.org/trunk/gcc/c-parser.c:1242 #20 0x081501b5 in c_common_parse_file () at ../../../gcc.gnu.org/trunk/gcc/c-family/c-opts.c:1094 #21 0x084b0ecf in toplev_main (argc=3D12, argv=3D0xbfffe5e4) at ../../../gcc.gnu.org/trunk/gcc/toplev.c:548 #22 0x08169932 in main (argc=3DCannot access memory at address 0x80000000 ) at ../../../gcc.gnu.org/trunk/gcc/main.c:36 (gdb)