PR25413 - data alignment question

Richard Guenther richard.guenther@gmail.com
Thu Dec 15 13:05:00 GMT 2005


On 12/15/05, Dorit Naishlos <DORIT@il.ibm.com> wrote:

> So, in short - when can we assume that pointer types have the minimum
> alignment required by their underlying type?

I think the C standard always guarantees this.  Of course with packed
structs or malicious users this is not always true but may (at least in
the case of malicious users) be invoking unspecified behavior.

Richard.



More information about the Gcc mailing list