public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <rguenther@suse.de>
To: Jan Hubicka <hubicka@ucw.cz>
Cc: Joseph Myers <joseph@codesourcery.com>,
	gcc-patches@gcc.gnu.org,     burnus@net-b.de
Subject: Re: Fix more of C/fortran canonical type issues
Date: Mon, 08 Jun 2015 14:54:00 -0000	[thread overview]
Message-ID: <alpine.LSU.2.11.1506081650490.30088@zhemvz.fhfr.qr> (raw)
In-Reply-To: <20150608144415.GA23542@kam.mff.cuni.cz>

On Mon, 8 Jun 2015, Jan Hubicka wrote:

> > On Mon, 8 Jun 2015, Richard Biener wrote:
> > 
> > > On Mon, 8 Jun 2015, Joseph Myers wrote:
> > > 
> > > > On Mon, 8 Jun 2015, Richard Biener wrote:
> > > > 
> > > > > I'm not sure the C standard mandates compatibility between
> > > > > 
> > > > > struct { int i; } and struct { unsigned i; } for purposes of TBAA.
> > > > > Joseph?
> > > > 
> > > > I don't think they are necessarily compatible for TBAA.
> > > 
> > > Ok, but as int and unsigned are reading either structs element
> > > via a pointer to int or a pointer to unsigned must be supported?
> > 
> > Yes.  The questionable case would be taking an object of one of those 
> > structure types, casting a pointer to it to point to the other structure 
> > type and then dereferencing.
> 
> Are "struct { int i; }" and "struct { unsigned i; }" compatible when one is defined
> in one unit and other in another?
> In any cae, I suppose if int and unsigned int pointers can be used interchangeably,
> we want to ignore TYPE_UNSGINED for purposes of canonical type calculation for LTO.
> So is the second variant of patch OK with a comment update that this is also required
> by C?

I think we should instead work towards eliminating the get_alias_set
langhook first.  The LTO langhook variant contains the same handling, btw,
so just inline that into get_alias_set and see what remains?

Richard.

> Honza
> > 
> > -- 
> > Joseph S. Myers
> > joseph@codesourcery.com
> 
> 

-- 
Richard Biener <rguenther@suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nuernberg)

  reply	other threads:[~2015-06-08 14:52 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-08  1:23 Jan Hubicka
2015-06-08  5:45 ` Jan Hubicka
2015-06-08  7:25   ` Jan Hubicka
2015-06-08 13:43     ` Richard Biener
2015-06-08 14:07       ` Joseph Myers
2015-06-08 14:32         ` Richard Biener
2015-06-08 14:44           ` Joseph Myers
2015-06-08 14:52             ` Jan Hubicka
2015-06-08 14:54               ` Richard Biener [this message]
2015-06-08 15:11                 ` Jan Hubicka
2015-06-08 15:32                   ` Fortran's C_CHAR type Jan Hubicka
2015-06-10 11:50                     ` Mikael Morin
2015-06-10 14:55                       ` Jan Hubicka
2015-06-10 16:37                         ` Mikael Morin
2015-06-11 18:19                           ` Jan Hubicka
2015-06-09  9:50                   ` Fix more of C/fortran canonical type issues Richard Biener
2015-06-09 17:24                     ` Jan Hubicka
2015-06-11 17:58                       ` Jan Hubicka
2015-06-22  7:25                       ` Jan Hubicka
2015-06-22 15:09                         ` Richard Biener
2015-06-22 16:17                           ` Jan Hubicka
2015-06-08 15:08       ` Jan Hubicka
2015-06-08 16:54         ` Joseph Myers
2015-06-08 16:57           ` Jan Hubicka
2015-06-08 17:03             ` Joseph Myers
2015-06-08 22:06               ` Jan Hubicka
2015-06-08 23:01       ` Jan Hubicka
2015-10-08  3:47     ` Jan Hubicka
2015-10-08  7:44       ` Richard Biener
2015-10-08 16:17         ` Jan Hubicka
2015-10-10 19:45         ` Jan Hubicka
2015-06-08 13:37   ` Richard Biener
2015-10-11  8:09 Dominique d'Humières
2015-10-12  7:10 ` Jan Hubicka
2015-10-12  7:41   ` Richard Biener

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.1506081650490.30088@zhemvz.fhfr.qr \
    --to=rguenther@suse.de \
    --cc=burnus@net-b.de \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    --cc=joseph@codesourcery.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).