Subject: Re: asm inline

From: Andreas Schwab <[email-masked]>
Date: Mon, 02 Dec 2002 15:29:47 +0100

"Kevin B. Hendricks" <[email-masked]> writes:

|> Hi,
|>
|> I thought strict-aliasing was only turned on at -O3?
|> It was that way in the past.  Did this change for gcc-3.2.X?

Yes, strict aliasing is now the default.

|> There seems to be an enormous amount of code that is not strict-aliasing
|> safe (in the JDK, in OpenOffice.org, etc).

Well, they have always walked on thin ice...

|> Is there any warning flag that can be enabled to help find these cases (the
|> OOo source base is simply huge)?

gcc 3.3 implements such a warning, but it may give many false positives.

Andreas.

--
Andreas Schwab, SuSE Labs, [email-masked]
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/