This is the mail archive of the gcc-patches@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]

[PATCH] Fix issues with flag_strict_aliasing changing during compilation (PR c/37106, take {2,3})


On Mon, Nov 03, 2008 at 05:01:45PM +0100, Richard Guenther wrote:
> Hmm.  I do not like this too much.  For 4.4 I'd like us simply avoid
> changing flag_strict_aliasing.

Attached are 2 alternatives to do that.  One that just silently avoids
changing flag_strict_aliasing, one that does that silently for
__optimize__({0,1,2,3}), but errors on __optimize__("fstrict-aliasing")
when -fno-strict-aliasing is given (or vice versa).

>  For 4.5 we should move flag_strict_aliasing to struct function instead.

How would that change anything?

	Jakub

Attachment: Y089a
Description: Text document

Attachment: Y089b
Description: Text document


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