Re: compatibility of structs/unions/enums in the middle end

2019-10-04 Thread Uecker, Martin
Am Freitag, den 04.10.2019, 14:28 +0200 schrieb Richard Biener: > On Fri, Oct 4, 2019 at 1:55 PM Uecker, Martin > wrote: > > > > Am Freitag, den 04.10.2019, 12:29 +0200 schrieb Richard Biener: > > > On Wed, Oct 2, 2019 at 8:24 PM Uecker, Martin > > > wrote: > > > > > > > > Am Mittwoch, den 02.1

Re: compatibility of structs/unions/enums in the middle end

2019-10-04 Thread Richard Biener
On Fri, Oct 4, 2019 at 1:55 PM Uecker, Martin wrote: > > Am Freitag, den 04.10.2019, 12:29 +0200 schrieb Richard Biener: > > On Wed, Oct 2, 2019 at 8:24 PM Uecker, Martin > > wrote: > > > > > > Am Mittwoch, den 02.10.2019, 17:37 +0200 schrieb Richard Biener: > > > > > > > ... > > > > > > > > > Oh

Re: compatibility of structs/unions/enums in the middle end

2019-10-04 Thread Uecker, Martin
Am Freitag, den 04.10.2019, 12:29 +0200 schrieb Richard Biener: > On Wed, Oct 2, 2019 at 8:24 PM Uecker, Martin > wrote: > > > > Am Mittwoch, den 02.10.2019, 17:37 +0200 schrieb Richard Biener: > > > > ... > > > > > > > Oh, and LTO does _not_ merge types declared inside a function, > > > > > s

Re: compatibility of structs/unions/enums in the middle end

2019-10-04 Thread Richard Biener
On Wed, Oct 2, 2019 at 8:24 PM Uecker, Martin wrote: > > Am Mittwoch, den 02.10.2019, 17:37 +0200 schrieb Richard Biener: > > On October 2, 2019 3:55:43 PM GMT+02:00, "Uecker, Martin" > > > > wrote: > > > Am Mittwoch, den 02.10.2019, 15:12 +0200 schrieb Richard Biener: > > > > On Wed, Oct 2, 201

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Uecker, Martin
Am Mittwoch, den 02.10.2019, 17:37 +0200 schrieb Richard Biener: > On October 2, 2019 3:55:43 PM GMT+02:00, "Uecker, Martin" > > wrote: > > Am Mittwoch, den 02.10.2019, 15:12 +0200 schrieb Richard Biener: > > > On Wed, Oct 2, 2019 at 3:10 PM Richard Biener > > > wrote: > > > > ... > > > Oh, an

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Richard Biener
On October 2, 2019 3:55:43 PM GMT+02:00, "Uecker, Martin" wrote: >Am Mittwoch, den 02.10.2019, 15:12 +0200 schrieb Richard Biener: >> On Wed, Oct 2, 2019 at 3:10 PM Richard Biener >> wrote: >> > >> > On Wed, Oct 2, 2019 at 2:35 PM Uecker, Martin >> > wrote: >> > > >> > > Am Mittwoch, den 02.1

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Uecker, Martin
Am Mittwoch, den 02.10.2019, 15:12 +0200 schrieb Richard Biener: > On Wed, Oct 2, 2019 at 3:10 PM Richard Biener > wrote: > > > > On Wed, Oct 2, 2019 at 2:35 PM Uecker, Martin > > wrote: > > > > > > Am Mittwoch, den 02.10.2019, 14:18 +0200 schrieb Richard Biener: > > > > On Wed, Oct 2, 2019 at

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Richard Biener
On Wed, Oct 2, 2019 at 3:10 PM Richard Biener wrote: > > On Wed, Oct 2, 2019 at 2:35 PM Uecker, Martin > wrote: > > > > Am Mittwoch, den 02.10.2019, 14:18 +0200 schrieb Richard Biener: > > > On Wed, Oct 2, 2019 at 1:57 PM Uecker, Martin > > > wrote: > > > > > > > > Thank you for your answers. >

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Richard Biener
On Wed, Oct 2, 2019 at 2:35 PM Uecker, Martin wrote: > > Am Mittwoch, den 02.10.2019, 14:18 +0200 schrieb Richard Biener: > > On Wed, Oct 2, 2019 at 1:57 PM Uecker, Martin > > wrote: > > > > > Thank you for your answers. > > > > Finally, how does LTO does it? It somehow also needs to unify > > >

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Uecker, Martin
Am Mittwoch, den 02.10.2019, 14:18 +0200 schrieb Richard Biener: > On Wed, Oct 2, 2019 at 1:57 PM Uecker, Martin > wrote: > > Thank you for your answers. > > Finally, how does LTO does it? It somehow also needs to unify > > different tagged types? Could we reuse this mechanism somehow? > > LTO

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Richard Biener
On Wed, Oct 2, 2019 at 1:57 PM Uecker, Martin wrote: > > Am Mittwoch, den 02.10.2019, 12:47 +0200 schrieb Richard Biener: > > On Wed, Oct 2, 2019 at 12:46 PM Richard Biener > > wrote: > > > > > > On Tue, Oct 1, 2019 at 7:49 PM Uecker, Martin > > > wrote: > > ... > > > > > > > > In particular, th

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Uecker, Martin
Am Mittwoch, den 02.10.2019, 12:47 +0200 schrieb Richard Biener: > On Wed, Oct 2, 2019 at 12:46 PM Richard Biener > wrote: > > > > On Tue, Oct 1, 2019 at 7:49 PM Uecker, Martin > > wrote: ... > > > > > > In particular, the idea is to make structs (+ unions, enums) > > > with the same tag and t

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Richard Biener
On Wed, Oct 2, 2019 at 12:46 PM Richard Biener wrote: > > On Tue, Oct 1, 2019 at 7:49 PM Uecker, Martin > wrote: > > > > > > > > Hi, > > > > I have a proposal for making changes to the rules for > > compatibility of tagged types in C2X (N2366). This was > > received with interest by WG14, so the

Re: compatibility of structs/unions/enums in the middle end

2019-10-02 Thread Richard Biener
On Tue, Oct 1, 2019 at 7:49 PM Uecker, Martin wrote: > > > > Hi, > > I have a proposal for making changes to the rules for > compatibility of tagged types in C2X (N2366). This was > received with interest by WG14, so there is a chance > that this could get accepted into C2X. > > In particular, th

compatibility of structs/unions/enums in the middle end

2019-10-01 Thread Uecker, Martin
Hi, I have a proposal for making changes to the rules for compatibility of tagged types in C2X  (N2366). This was received with interest by WG14, so there is a chance that this could get accepted into C2X. In particular, the idea is to make structs (+ unions, enums) with the same tag and the sa