[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dereferencing type-punned pointer will break strict-aliasing rules
From: |
Nicola Pero |
Subject: |
Re: dereferencing type-punned pointer will break strict-aliasing rules |
Date: |
Fri, 30 May 2003 22:53:21 +0100 (BST) |
> Hi,
>
> since more and more seem to switch to gcc33, could someone PLEASE add
>
> -fno-strict-aliasing
>
> to xxx_OBJCFLAGS in Makefiles (common.make?)
>
> For one, the warnings are annoying and secondly, since a lot of projects
> set -Werror, you will have to go through each GNUmakefile(.preamble) and
> edit it, or remember to invoke gcc with the option on the command line.
>
> We had about 5 questions about that problem on #GNUstep so far today...
Ok. I have added -fno-strict-aliasing to fix the short term situation,
but I suspect it might be a compiler bug, and in the long term it would be
much better to fix the compiler.