Re: PR25413 - data alignment question

2005-12-18 Thread Richard Guenther
On 12/18/05, Dorit Naishlos <[EMAIL PROTECTED]> wrote: > Richard Guenther <[EMAIL PROTECTED]> wrote on 15/12/2005 14:52:27: > > > On 12/15/05, Dorit Naishlos <[EMAIL PROTECTED]> wrote: > > > > > So, in short - when can we assume that pointer types have the minimum > > > alignment required by their

Re: PR25413 - data alignment question

2005-12-18 Thread Dorit Naishlos
Richard Guenther <[EMAIL PROTECTED]> wrote on 15/12/2005 14:52:27: > On 12/15/05, Dorit Naishlos <[EMAIL PROTECTED]> 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

Re: PR25413 - data alignment question

2005-12-15 Thread Richard Guenther
On 12/15/05, Dorit Naishlos <[EMAIL PROTECTED]> 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 bu