From: Bill Schmidt <wschmidt@linux.vnet.ibm.com>
To: Nathan Sidwell <nathan@acm.org>
Cc: Richard Biener <richard.guenther@gmail.com>,
GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PR 79905] ICE with vector_type
Date: Tue, 04 Apr 2017 13:57:00 -0000 [thread overview]
Message-ID: <CAA1B060-65D4-49F1-BB0D-3C4C9244C4DB@linux.vnet.ibm.com> (raw)
In-Reply-To: <7cd553e8-623a-d2d4-0ace-331f3df14701@acm.org>
I'll try the POC patch in a bit (kind of ugly as we have to replicate this for a whole bunch of types, I guess).
Just FYI, I noticed this similar bug report came in today, not sure about the types: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80309
-- Bill
Bill Schmidt, Ph.D.
GCC for Linux on Power
Linux on Power Toolchain
IBM Linux Technology Center
wschmidt@linux.vnet.ibm.com
> On Apr 4, 2017, at 8:49 AM, Nathan Sidwell <nathan@acm.org> wrote:
>
> On 04/04/2017 09:00 AM, Richard Biener wrote:
>
>> tree
>> add_builtin_type (const char *name, tree type)
>> {
>> tree id = get_identifier (name);
>> tree decl = build_decl (BUILTINS_LOCATION, TYPE_DECL, id, type);
>> return lang_hooks.decls.pushdecl (decl);
>> }
>>
>> this seems to miss setting TYPE_NAME (type) = decl - oh, that may be
>> what set_underlying_type does via the langhook.
>
> Correct, via the langhook. I wonder if the smacking of the incoming-type's TYPE_NAME is so that the global tree node references the now-named builtin type. If we were to make a clone here, (things like) VS4SI_type_node would remain an unnamed type. And I guess debug would be unhappy?
>
>> At this point I'd rather restrict fiddling in this fragile area in
>> rs6000.c only ;)
>
> me too.
>
>> Does removing the TYPE_NAME setting fix things?
>
> no, those TYPE_NAME assignments are redundant -- set_underlying_type has already initialized it.
>
> The attached PoC fixes 79905 (no idea what ppc test it might break)
>
> nathan
>
> --
> Nathan Sidwell
> <79905-2.diff>
next prev parent reply other threads:[~2017-04-04 13:57 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-03 19:03 Nathan Sidwell
2017-04-04 8:28 ` Richard Biener
2017-04-04 11:31 ` Nathan Sidwell
2017-04-04 13:00 ` Richard Biener
2017-04-04 13:49 ` Nathan Sidwell
2017-04-04 13:57 ` Bill Schmidt [this message]
2017-04-04 14:02 ` Nathan Sidwell
2017-04-04 17:40 ` Bill Schmidt
2017-04-04 18:02 ` Nathan Sidwell
2017-04-04 20:46 ` Bill Schmidt
2017-04-05 13:18 ` Nathan Sidwell
2017-04-05 13:35 ` Bill Schmidt
2017-04-05 14:14 ` Nathan Sidwell
2017-04-05 20:33 ` Bill Schmidt
2017-04-06 10:29 ` Richard Biener
2017-04-06 11:28 ` Nathan Sidwell
2017-04-06 14:04 ` Richard Biener
2017-04-06 14:20 ` Bill Schmidt
2017-04-06 14:26 ` Bill Schmidt
2017-04-06 15:13 ` Bill Schmidt
2017-04-06 18:34 ` Nathan Sidwell
2017-04-06 20:18 ` Segher Boessenkool
2017-04-10 11:24 ` Nathan Sidwell
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=CAA1B060-65D4-49F1-BB0D-3C4C9244C4DB@linux.vnet.ibm.com \
--to=wschmidt@linux.vnet.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=nathan@acm.org \
--cc=richard.guenther@gmail.com \
/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: link
Be 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).