Re: [PATCHv2] Add a -Wcast-align=strict warning

2017-09-15 Thread Joseph Myers
On Thu, 14 Sep 2017, Bernd Edlinger wrote: > Hi, > > as suggested by Joseph, here is an updated patch that > uses min_align_of_type instead of TYPE_ALIGN. > > Is it OK? OK. -- Joseph S. Myers jos...@codesourcery.com

[PATCHv2] Add a -Wcast-align=strict warning

2017-09-14 Thread Bernd Edlinger
On 09/04/17 10:07, Bernd Edlinger wrote: > Hi, > > as you know we have a -Wcast-align warning which works only for > STRICT_ALIGNMENT targets. But occasionally it would be nice to be > able to switch this warning on even for other targets. > > Therefore I would like to add a strict version of th