From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 35661385DC1B; Fri, 8 May 2020 02:08:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35661385DC1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588903711; bh=ISjCuLP7Bv0VCUHPKKVwhDoPFEMuuJXUD5BHnO3EoWM=; h=From:To:Subject:Date:From; b=r4NPwa1Wz4zexa81+GLNFUZIz02IyLhTT2D4xDIj2khUVHuouO+IhxDrUB1cvgIG8 H1fYCwfdDchDX6PCMBwVombgF/hHteIoeT++NonhKn2OTNJa88FG1P5xeHbyrpvWQf iDEas3je+wL4uhGE6K45BuZt3uZpPWyQXZip6neI= From: "felix.yang at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94991] New: ICE: Segmentation fault with option -mgeneral-regs-only Date: Fri, 08 May 2020 02:08:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: felix.yang at huawei dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2020 02:08:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94991 Bug ID: 94991 Summary: ICE: Segmentation fault with option -mgeneral-regs-only Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: felix.yang at huawei dot com Target Milestone: --- Target: aarch64 Yet another ICE with -mgeneral-regs-only: foo.c struct S { float d; }; void bar (struct S); void f0 (int x) { struct S s =3D {.d =3D 0.0f }; ((char *) &s.d)[0] =3D x; s.d *=3D 7.0; bar (s); } $aarch64-linux-gnu-gcc -S -O2 -mgeneral-regs-only foo.c pr99999.c: In function =E2=80=98f0=E2=80=99: pr99999.c:8:12: error: =E2=80=98-mgeneral-regs-only=E2=80=99 is incompatibl= e with the use of floating-point types 8 | struct S s =3D {.d =3D 0.0f }; | ^ pr99999.c:10:7: error: =E2=80=98-mgeneral-regs-only=E2=80=99 is incompatibl= e with the use of floating-point types 10 | s.d *=3D 7.0; | ~~~~^~~~~~ pr99999.c:10:7: error: =E2=80=98-mgeneral-regs-only=E2=80=99 is incompatibl= e with the use of floating-point types pr99999.c:10:7: error: =E2=80=98-mgeneral-regs-only=E2=80=99 is incompatibl= e with the use of floating-point types during RTL pass: expand pr99999.c:10:7: internal compiler error: Segmentation fault 0x12a7a0b crash_signal ../../gcc-git/gcc/toplev.c:328 0xb05a70 single_set(rtx_insn const*) ../../gcc-git/gcc/rtl.h:3437 0xd1dd2f emit_move_insn(rtx_def*, rtx_def*) ../../gcc-git/gcc/expr.c:3858 0xb5c837 emit_library_call_value_1(int, rtx_def*, rtx_def*, libcall_type, machine_mode, int, std::pair*) ../../gcc-git/gcc/calls.c:5597 0xb42dab emit_library_call_value(rtx_def*, rtx_def*, libcall_type, machine_mode, rtx_def*, machine_mode, rtx_def*, machine_mode) ../../gcc-git/gcc/rtl.h:4257 0x10f0ff3 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def= *, int, optab_methods) ../../gcc-git/gcc/optabs.c:1831 0xd05133 expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int, bool) ../../gcc-git/gcc/expmed.c:3568 0xd3291f expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc-git/gcc/expr.c:9046 0xd36c0f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc-git/gcc/expr.c:10054 0xd2f2e3 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifi= er, rtx_def**, bool) ../../gcc-git/gcc/expr.c:8358 0xd10943 expand_normal ../../gcc-git/gcc/expr.h:288 0xd29ecb store_field ../../gcc-git/gcc/expr.c:7102 0xd2256b expand_assignment(tree_node*, tree_node*, bool) ../../gcc-git/gcc/expr.c:5374 0xb82f1b expand_gimple_stmt_1 ../../gcc-git/gcc/cfgexpand.c:3749 0xb83387 expand_gimple_stmt ../../gcc-git/gcc/cfgexpand.c:3847 0xb8ba73 expand_gimple_basic_block ../../gcc-git/gcc/cfgexpand.c:5887 0xb8d8d3 execute ../../gcc-git/gcc/cfgexpand.c:6542=