This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -fstrict-aliasing


John Parkes <jp012c6013@blueyonder.co.uk> writes:

> Is GCC permitted to miscompile, with -fstrict-aliasing, source
> which clearly flouts the assumptions of that option ?
[snip]

'miscompile' is not the right word. According to the standard, the
    behaviour of your example has undefined behavior. So the code the
    gcc produces is not a 'miscompilation' no matter what it does.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]