public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "duanbo3 at huawei dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/94201] New: aarch64:ICE in tiny code model for ilp32 Date: Tue, 17 Mar 2020 02:21:59 +0000 [thread overview] Message-ID: <bug-94201-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94201 Bug ID: 94201 Summary: aarch64:ICE in tiny code model for ilp32 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: duanbo3 at huawei dot com Target Milestone: --- Target: aarch64 Created attachment 48048 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48048&action=edit mcmodel_tiny_for_ilp32.patch hello I find an ICE when testing GCC10.0 on aarch64 at -mabi=ilp32 -fPIC -mcmodel=tiny: Simple test case --- extern int bar (void *); extern long long a; int foo (void) { a=1; return bar ((void *)bar); } --- GCC version: gcc version 10.0.1 20200312 (experimental) Runcommand: gcc new_test.c -mabi=ilp32 -fPIC -mcmodel=tiny -S -o poc.s Result: ./new_test.c: In function 'foo': ./new_test.c:14:1: error: unrecognizable insn: (insn 11 10 12 2 (set (reg:SI 0 x0) (unspec:DI [ (symbol_ref:SI ("bar") [flags 0x41] <function_decl 0xffffa0cb3b00 bar>) ] UNSPEC_GOTTINYPIC)) "./new_test.c":13:10 -1 (expr_list:REG_EQUAL (symbol_ref:SI ("bar") [flags 0x41] <function_decl 0xffffa0cb3b00 bar>) (nil))) during RTL pass: vregs ./new_test.c:14:1: internal compiler error: in extract_insn, at recog.c:2294 0x62858b _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../.././gcc/rtl-error.c:108 0x6285b7 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ../.././gcc/rtl-error.c:116 0xc9aa7f extract_insn(rtx_insn*) ../.././gcc/recog.c:2294 0x9c8917 instantiate_virtual_regs_in_insn ../.././gcc/function.c:1607 0x9c8917 instantiate_virtual_regs ../.././gcc/function.c:1977 0x9c8917 execute ../.././gcc/function.c:2026
next reply other threads:[~2020-03-17 2:22 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-17 2:21 duanbo3 at huawei dot com [this message] 2020-03-17 6:17 ` [Bug c/94201] " duanbo3 at huawei dot com 2020-03-17 8:18 ` marxin at gcc dot gnu.org 2020-03-18 11:50 ` cvs-commit at gcc dot gnu.org 2020-03-19 7:42 ` [Bug target/94201] " rsandifo 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-94201-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: linkBe 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).