From: Richard Biener <rguenther@suse.de>
To: Jan Hubicka <hubicka@ucw.cz>
Cc: Bernd Schmidt <bschmidt@redhat.com>,
Eric Botcazou <ebotcazou@adacore.com>,
gcc-patches@gcc.gnu.org, law@redhat.com
Subject: Re: Do not use TYPE_CANONICAL in useless_type_conversion
Date: Thu, 08 Oct 2015 10:51:00 -0000 [thread overview]
Message-ID: <alpine.LSU.2.11.1510081248520.6516@zhemvz.fhfr.qr> (raw)
In-Reply-To: <20151008034934.GB47818@kam.mff.cuni.cz>
On Thu, 8 Oct 2015, Jan Hubicka wrote:
> >
> > && TREE_CODE (outer_type) == OFFSET_TYPE
> >
> > Ok with those changes.
>
> Thank you! I commited the patch.
> At a hike today it appeared to me that for ipa-icf and other calling convetions
> checks we should not rely on useless_type_conversion_p because there may be
> types that are compatible in gimple type system but have different calling
> conventions. I will hack calling convention comparer tomorrow - should not be
> too hard, just doing the cumulative walk and comparing that the RTL containers
> are the same.
I think the patch caused a bootstrap failure on x86_64-linux with Ada.
We're having an aggregate copy SImode = BLKmode and end up with
BLKmode from int_mode_for_mode (BLKmode) which later ICEs (obviously)
in gen_lowpart.
obj/gcc/ada/rts> /abuild/rguenther/obj/./gcc/xgcc
-B/abuild/rguenther/obj/./gcc/ -B/usr/local/x86_64-pc-linux-gnu/bin/
-B/usr/local/x86_64-pc-linux-gnu/lib/ -isystem
/usr/local/x86_64-pc-linux-gnu/include -isystem
/usr/local/x86_64-pc-linux-gnu/sys-include -c -g -O2 -fpic -W -Wall
-gnatpg -nostdinc s-regpat.adb -o s-regpat.o
+===========================GNAT BUG
DETECTED==============================+
| 6.0.0 20151008 (experimental) (x86_64-pc-linux-gnu) GCC error:
|
| in gen_lowpart_common, at emit-rtl.c:1399
|
| Error detected around s-regpat.adb:1029:22
|
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.
|
| Use a subject line meaningful to you and us to track the bug.
|
| Include the entire contents of this bug box in the report.
|
| Include the exact command that you entered.
|
| Also include sources listed below.
|
+==========================================================================+
Richard.
> Honza
> >
> > Thanks,
> > Richard.
> >
> > > + return useless_type_conversion_p (TREE_TYPE (outer_type),
> > > + TREE_TYPE (inner_type))
> > > + && useless_type_conversion_p
> > > + (TYPE_OFFSET_BASETYPE (outer_type),
> > > + TYPE_OFFSET_BASETYPE (inner_type));
> > >
> > > return false;
> > > }
>
>
--
Richard Biener <rguenther@suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)
next prev parent reply other threads:[~2015-10-08 10:51 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 22:11 Jan Hubicka
2015-10-01 8:33 ` Richard Biener
2015-10-01 17:51 ` Jan Hubicka
2015-10-02 7:45 ` Richard Biener
2015-10-02 6:43 ` Jan Hubicka
2015-10-02 7:56 ` Richard Biener
2015-10-02 16:02 ` Jan Hubicka
2015-10-02 18:00 ` Jan Hubicka
2015-10-02 21:16 ` Eric Botcazou
2015-10-02 21:41 ` Jan Hubicka
2015-10-02 21:52 ` Jan Hubicka
2015-10-05 12:54 ` Bernd Schmidt
2015-10-05 15:35 ` Jan Hubicka
2015-10-06 11:18 ` Richard Biener
2015-10-06 17:54 ` Jan Hubicka
2015-10-07 6:00 ` Jan Hubicka
2015-10-07 8:52 ` Richard Biener
2015-10-08 3:49 ` Jan Hubicka
2015-10-08 7:48 ` Richard Biener
2015-10-08 16:20 ` Jan Hubicka
2015-10-08 10:51 ` Richard Biener [this message]
2015-10-08 20:30 ` Jan Hubicka
2015-10-08 23:24 ` Jan Hubicka
2015-10-09 8:19 ` Richard Biener
2015-10-09 8:29 ` Eric Botcazou
2015-10-09 7:36 ` Eric Botcazou
2015-10-09 17:55 ` Jan Hubicka
2015-10-13 8:09 ` Alexandre Oliva
2015-10-13 8:39 ` Richard Biener
2015-10-13 9:20 ` Eric Botcazou
2015-10-13 16:36 ` Alexandre Oliva
2015-10-14 4:34 ` Jan Hubicka
2015-10-14 20:15 ` Alexandre Oliva
2015-10-08 10:54 ` Eric Botcazou
2015-10-08 16:03 ` Jan Hubicka
2015-10-08 16:10 ` Andreas Schwab
2015-10-08 23:05 ` Jan Hubicka
2015-10-09 9:18 ` Andreas Schwab
2015-10-09 18:34 ` Jan Hubicka
2015-10-16 6:45 ` Jan Hubicka
2015-10-16 15:08 ` Andreas Schwab
2015-10-01 14:11 ` Eric Botcazou
2015-10-01 14:28 ` Richard Biener
2015-10-01 14:39 ` Eric Botcazou
2015-10-01 17:44 ` Jan Hubicka
2015-10-02 7:43 ` Eric Botcazou
2015-10-02 8:00 ` Richard Biener
2015-10-02 8:37 ` Eric Botcazou
2015-10-02 7:39 ` Richard Biener
2015-10-02 7:48 ` Eric Botcazou
2015-10-02 8:03 ` Richard Biener
2015-10-02 11:30 Bernd Edlinger
2015-10-02 21:31 ` Eric Botcazou
2015-10-03 16:23 ` Bernd Edlinger
2015-10-03 21:31 ` Eric Botcazou
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=alpine.LSU.2.11.1510081248520.6516@zhemvz.fhfr.qr \
--to=rguenther@suse.de \
--cc=bschmidt@redhat.com \
--cc=ebotcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hubicka@ucw.cz \
--cc=law@redhat.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).