public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rearnsha at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/103601] New: [12 Regression] ICE in insert_kill, at ipa-modref-tree.c:84 Date: Tue, 07 Dec 2021 11:27:28 +0000 [thread overview] Message-ID: <bug-103601-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103601 Bug ID: 103601 Summary: [12 Regression] ICE in insert_kill, at ipa-modref-tree.c:84 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: rearnsha at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Target: arm-none-eabi aarch64-none-elf The following reduced testcase (from CSiBE) generates an ICE at -O2 or above: typedef struct { } spinlock_t; struct list_head { struct list_head *next, *prev; }; struct __wait_queue_head { spinlock_t lock; struct list_head task_list; }; typedef struct __wait_queue_head wait_queue_head_t; static inline void init_waitqueue_head(wait_queue_head_t *q) { q->lock = (spinlock_t) { }; do { (&q->task_list)->next = (&q->task_list); (&q->task_list)->prev = (&q->task_list); } while (0); } struct timer_list { void (*function)(unsigned long); }; struct rpc_task { struct timer_list tk_timer; wait_queue_head_t tk_wait; }; typedef void (*rpc_action)(struct rpc_task *); static void rpc_run_timer(struct rpc_task *task) { } inline void rpc_init_task(struct rpc_task *task, struct rpc_clnt *clnt, rpc_action callback, int flags) { task->tk_timer.function = (void (*)(unsigned long)) rpc_run_timer; init_waitqueue_head(&task->tk_wait); } When compiled with, eg: -O3 -mcpu=arm1136jf-s -marm -mfpu=vfp -mfloat-abi=softfp -fno-short-enums -fgnu89-inline -fno-strict-aliasing -fno-common -fomit-frame-pointer -fno-strength-reduce test.c
next reply other threads:[~2021-12-07 11:27 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-07 11:27 rearnsha at gcc dot gnu.org [this message] 2021-12-07 11:34 ` [Bug ipa/103601] " rearnsha at gcc dot gnu.org 2021-12-07 12:14 ` rguenth at gcc dot gnu.org 2021-12-07 13:38 ` [Bug ipa/103601] [12 Regression] ICE in insert_kill, at ipa-modref-tree.c:84 since r12-5244-g64f3e71c302b4a13 marxin at gcc dot gnu.org 2021-12-10 10:30 ` roger at nextmovesoftware dot com 2021-12-10 10:43 ` pinskia at gcc dot gnu.org 2021-12-10 10:49 ` hubicka at kam dot mff.cuni.cz 2021-12-10 12:04 ` cvs-commit at gcc dot gnu.org 2021-12-10 21:19 ` roger at nextmovesoftware dot com
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-103601-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).