From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24357 invoked by alias); 6 May 2012 22:02:03 -0000 Received: (qmail 24347 invoked by uid 22791); 6 May 2012 22:02:02 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY 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; Sun, 06 May 2012 22:01:49 +0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53261] New: [4.8 Regression] ICE in tree_strip_nop_conversions Date: Sun, 06 May 2012 22:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin 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 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: 2012-05/txt/msg00670.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53261 Bug #: 53261 Summary: [4.8 Regression] ICE in tree_strip_nop_conversions Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: danglin@gcc.gnu.org Host: hppa*-*-* (32-bit) Target: hppa*-*-* (32-bit) Build: hppa*-*-* (32-bit) Created attachment 27329 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D27329 Preprocessed source /home/dave/gnu/gcc/objdir/./prev-gcc/g++ -B/home/d ave/gnu/gcc/objdir/./prev-gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.7.0/hppa-linux-gnu /bin/ -nostdinc++ -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/s rc/.libs -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/ .libs -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa- linux-gnu -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/incl= ude - I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -L/home/dave/gnu/gcc/objdir/prev- hppa-linux-gnu/libstdc++-v3/src/.libs -L/home/dave/gnu/gcc/objdir/prev-hppa-linu x-gnu/libstdc++-v3/libsupc++/.libs -I../../gcc/libcpp -I. -I../../gcc/libcpp/.. /include -I../../gcc/libcpp/include -g -O2 -W -Wall -Wno-narrowing -Wwrite-stri ngs -Wmissing-format-attribute -pedantic -Wno-long-long -Werror -fno-except= ions=20 -fno-rtti -I../../gcc/libcpp -I. -I../../gcc/libcpp/../include -I../../gcc/libcp p/include -c -o files.o -MT files.o -MMD -MP -MF .deps/files.Tpo ../../gcc/libc pp/files.c ../../gcc/libcpp/files.c: In function =E2=80=98bool pch_open_file(cpp_reade= r*, _cpp_file *, bool*)=E2=80=99: ../../gcc/libcpp/files.c:288:43: internal compiler error: Segmentation fault if (file->name[0] =3D=3D '\0' || !pfile->cb.valid_pch) Program received signal SIGSEGV, Segmentation fault. tree_strip_nop_conversions (exp=3D0x0) at ../../gcc/gcc/tree.c:11211 11211 while (tree_nop_conversion (exp)) (gdb) bt #0 tree_strip_nop_conversions (exp=3D0x0) at ../../gcc/gcc/tree.c:11211 #1 0x00954b9c in integer_zerop (expr=3D) at ../../gcc/gcc/tree.c:1731 #2 0x002d6f2c in warn_logical_operator (location=3D1226970,=20 code=3D, type=3D0x40f4e660, code_left=3D,= =20 op_left=3D0x4130f260, code_right=3DEQ_EXPR, op_right=3D0x4130f2e0) at ../../gcc/gcc/c-family/c-common.c:1647 #3 0x00096944 in build_new_op_1 (loc=3D1226970, code=3DTRUTH_ORIF_EXPR, fl= ags=3D3,=20 arg1=3D0x4130f260, arg2=3D0x4130f2e0, arg3=3D,=20 overload=3D0xfbf02df8, complain=3D3) at ../../gcc/gcc/cp/call.c:5261 #4 0x00096aa4 in build_new_op (loc=3D1093726944, code=3DTRUTH_ORIF_EXPR,=20 flags=3D1089803568, arg1=3D0x0, arg2=3D0x4130f2e0, arg3=3D0x0,=20 overload=3D0xfbf02df8, complain=3D3) at ../../gcc/gcc/cp/call.c:5326 #5 0x001f4568 in build_x_binary_op (loc=3D1089803568, code=3DTRUTH_ORIF_EX= PR,=20 arg1=3D0x0, arg1_code=3D1226970, arg2=3D0x4130f260, arg2_code=3DERROR_M= ARK,=20 overload=3D0xfbf02df8, complain=3D3) at ../../gcc/gcc/cp/typeck.c:3608 #6 0x001d1f54 in cp_parser_binary_expression (parser=3D0x4130f2e0,=20 cast_p=3D, no_toplevel_fold_p=3D,=20 prec=3DPREC_INCLUSIVE_OR_EXPRESSION, pidk=3D0x0) at ../../gcc/gcc/cp/parser.c:7399 #7 0x001d2168 in cp_parser_assignment_expression (parser=3D0x4102e460,=20 cast_p=3D, pidk=3D0x0) at ../../gcc/gcc/cp/parser.c:7504 #8 0x001d8b34 in cp_parser_expression (parser=3D0x4102e460,=20 ---Type to continue, or q to quit--- cast_p=3D, pidk=3D0x0) at ../../gcc/gcc/cp/parser.c:7650 #9 0x001db68c in cp_parser_condition (parser=3D0x4102e460) at ../../gcc/gcc/cp/parser.c:9281 #10 0x001c2cb0 in cp_parser_selection_statement (if_p=3D0x0, parser=3D0x410= 2e460) at ../../gcc/gcc/cp/parser.c:9058 #11 cp_parser_statement (parser=3D0x4102e460, in_statement_expr=3D0x0,=20 in_compound=3D, if_p=3D0x0) at ../../gcc/gcc/cp/parser.c= :8645 #12 0x001c434c in cp_parser_statement_seq_opt (parser=3D0x0,=20 in_statement_expr=3D0x4f) at ../../gcc/gcc/cp/parser.c:9004 #13 0x001c45a8 in cp_parser_compound_statement (parser=3D0x0,=20 in_statement_expr=3D0x12b8c0, in_try=3D,=20 function_body=3D) at ../../gcc/gcc/cp/parser.c:8958 #14 0x001dfd2c in cp_parser_function_body (parser=3D0x4102e460) at ../../gcc/gcc/cp/parser.c:17422 #15 cp_parser_ctor_initializer_opt_and_function_body (parser=3D0x4102e460) at ../../gcc/gcc/cp/parser.c:17456 #16 0x001e0408 in cp_parser_function_definition_after_declarator (parser=3D= 0x0,=20 inline_p=3D) at ../../gcc/gcc/cp/parser.c:21069 #17 0x001e09ac in cp_parser_function_definition_from_specifiers_and_declara= tor (declarator=3D0xd6d370, attributes=3D0x0, decl_specifiers=3D,=20 parser=3D0x4102e460) at ../../gcc/gcc/cp/parser.c:20989 #18 cp_parser_init_declarator (parser=3D0x4102e460,=20 decl_specifiers=3D, checks=3D0x0,=20 ---Type to continue, or q to quit--- function_definition_allowed_p=3D, member_p=3D0 '\000',=20 declares_class_or_enum=3D0, function_definition_p=3D0xfbf02724 "\001=D1= =B9$",=20 maybe_range_for_decl=3D0x0) at ../../gcc/gcc/cp/parser.c:15584 #19 0x001e2018 in cp_parser_simple_declaration (parser=3D0x4102e460,=20 function_definition_allowed_p=3D112 'p', maybe_range_for_decl=3D0x46) at ../../gcc/gcc/cp/parser.c:10427 #20 0x001e48c4 in cp_parser_block_declaration (parser=3D0x4102e460,=20 statement_p=3D) at ../../gcc/gcc/cp/parser.c:10313 #21 0x001e9a14 in cp_parser_declaration (parser=3D0x4102e460) at ../../gcc/gcc/cp/parser.c:10210 #22 0x001e8350 in cp_parser_declaration_seq_opt (parser=3D0x4102e460) at ../../gcc/gcc/cp/parser.c:10096 #23 0x001ea034 in cp_parser_translation_unit (parser=3D0x4102e460) at ../../gcc/gcc/cp/parser.c:3797 #24 c_parse_file () at ../../gcc/gcc/cp/parser.c:27449 #25 0x0031a5e8 in c_common_parse_file () at ../../gcc/gcc/c-family/c-opts.c:1128 #26 0x0071ac28 in compile_file () at ../../gcc/gcc/toplev.c:551 #27 do_compile () at ../../gcc/gcc/toplev.c:1874 #28 toplev_main (argc=3D23, argv=3D0xfbf02028) at ../../gcc/gcc/toplev.c:19= 50 #29 0x00af1934 in main (argc=3D, argv=3D) at ../../gcc/gcc/main.c:36 (gdb) disass $pc-16,$pc+16 Dump of assembler code from 0x953c9c to 0x953cbc: 0x00953c9c : ldil L%4000,r23 0x00953ca0 : b,l 0x938814 ,rp 0x00953ca4 : ldo -1434(r23),r23 0x00953ca8 : ldw 14(r3),r3 =3D> 0x00953cac : ldh 0(r3),ret0 0x00953cb0 : cmpb,=3D r9,ret0,0x953cc0 0x00953cb4 : ldo 570(r4),r19 0x00953cb8 : cmpclr,=3D r12,ret0,r0 End of assembler dump. (gdb) p/x $r3 $1 =3D 0x0 r187158 was ok.