Re: Fix canonical types of atomic types

2019-02-28 Thread Jan Hubicka
> > + /* Atomic types increase minimal alignment. We must to do so as well > > + or we get duplicated canonical types. See PR88686. */ > > + if ((TYPE_QUALS (cand) & TYPE_QUAL_ATOMIC)) > > +{ > > + /* See if this object can map to a basic atomic type. */ > > + tree atomic_typ

Re: Fix canonical types of atomic types

2019-02-27 Thread Richard Biener
On Sun, Feb 10, 2019 at 6:21 PM Jan Hubicka wrote: > > Hi, > build_qualified_type adjusts alignment of atomic types to one of minimal > alignment needed for atomic operations (I think it does so). For packed > structures this leads to type variant to be created and alignment to be > updated later.

Re: Fix canonical types of atomic types

2019-02-26 Thread Martin Liška
PING^1 On 2/10/19 6:21 PM, Jan Hubicka wrote: > Hi, > build_qualified_type adjusts alignment of atomic types to one of minimal > alignment needed for atomic operations (I think it does so). For packed > structures this leads to type variant to be created and alignment to be > updated later. > > I

Fix canonical types of atomic types

2019-02-10 Thread Jan Hubicka
Hi, build_qualified_type adjusts alignment of atomic types to one of minimal alignment needed for atomic operations (I think it does so). For packed structures this leads to type variant to be created and alignment to be updated later. If you call again build_qualified_type on packed structures, i