Re: [PATCH][C fam] Fix PR80593, bogus strict-aliasing warnings

2017-05-19 Thread Richard Biener
On Fri, 19 May 2017, Marek Polacek wrote: > On Thu, May 18, 2017 at 01:00:39PM +0200, Richard Biener wrote: > > > > The following reverts an earlier change of mine (2008) to explicitely > > warn about accessing alias-set zero memory with alias-set non-zero. > > That was supposed to catch the case

Re: [PATCH][C fam] Fix PR80593, bogus strict-aliasing warnings

2017-05-19 Thread Marek Polacek
On Thu, May 18, 2017 at 01:00:39PM +0200, Richard Biener wrote: > > The following reverts an earlier change of mine (2008) to explicitely > warn about accessing alias-set zero memory with alias-set non-zero. > That was supposed to catch the case in g++.dg/warn/Wstrict-aliasing-6.C > which is > >

[PATCH][C fam] Fix PR80593, bogus strict-aliasing warnings

2017-05-18 Thread Richard Biener
The following reverts an earlier change of mine (2008) to explicitely warn about accessing alias-set zero memory with alias-set non-zero. That was supposed to catch the case in g++.dg/warn/Wstrict-aliasing-6.C which is int foo () { char buf[8]; return *((int *)buf); /* { dg-warning "strict-al