public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/64391] ICE: SIGSEGV in get_attrs_for (trans-mem.c:179) with -fgnu-tm and #pragma GCC ivdep Date: Tue, 13 Jan 2015 13:55:00 -0000 [thread overview] Message-ID: <bug-64391-4-6Rd1rfhi4S@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-64391-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64391 --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- So e.g. diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index b449760..21fa497 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -183,6 +183,9 @@ static void *expand_regions (struct tm_region *, static tree get_attrs_for (const_tree x) { + if (x == NULL_TREE) + return NULL_TREE; + switch (TREE_CODE (x)) { case FUNCTION_DECL: @@ -191,16 +194,16 @@ get_attrs_for (const_tree x) default: if (TYPE_P (x)) - return NULL; + return NULL_TREE; x = TREE_TYPE (x); if (TREE_CODE (x) != POINTER_TYPE) - return NULL; + return NULL_TREE; /* FALLTHRU */ case POINTER_TYPE: x = TREE_TYPE (x); if (TREE_CODE (x) != FUNCTION_TYPE && TREE_CODE (x) != METHOD_TYPE) - return NULL; + return NULL_TREE; /* FALLTHRU */ case FUNCTION_TYPE:
next prev parent reply other threads:[~2015-01-13 13:55 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-12-23 18:58 [Bug middle-end/64391] New: " zsojka at seznam dot cz 2014-12-23 19:55 ` [Bug middle-end/64391] " zsojka at seznam dot cz 2015-01-13 13:09 ` mpolacek at gcc dot gnu.org 2015-01-13 13:55 ` mpolacek at gcc dot gnu.org [this message] 2015-01-13 20:23 ` mpolacek at gcc dot gnu.org 2015-01-13 20:25 ` mpolacek at gcc dot gnu.org 2015-01-14 8:44 ` mpolacek at gcc dot gnu.org 2015-01-14 8:48 ` mpolacek 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-64391-4-6Rd1rfhi4S@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).