[m-rev.] for post-commit review: compatibility with gcc 3.4

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Jul 23 18:55:22 AEST 2004

On 09-Jul-2004, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> A fifth problem is that gcc 3.4 by default assumes -fstrict-aliasing at -O2.
> Since we cast between integers and pointers of different types all the time,
> and changing that is not practical, at least in the short term, we need to
> disable -fstrict-aliasing when we enable -O2.

A possible alternative for the longer term would be to declare the MR_Word
type with the `may_alias' attribute (which is supported in GCC >= 3.3),
and likewise for any other types that we use similarly.

Fergus Henderson                    |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe

More information about the reviews mailing list