axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] GCC/GCL warning messages


From: daly
Subject: [Axiom-developer] GCC/GCL warning messages
Date: Sun, 18 Feb 2007 12:50:10 -0600

Camm,

I'm building the next Axiom release. During the GCL build I see a large
number of messages that read:

gcl_defmacro.c:In function `L12':
gcl_defmacro.c:79: warning: dereferencing type-punned pointer will
 break strict-aliasing rules

C99 language semantics now assume that pointers to different types
point to different memory locations, which is obvious nonsense, but
part of the new standard.

You might want to add -fno-strict-aliasing option to the GCC command line.
The alternative fix is to embed a (void *) between your cast and your
thing thus:

  x = (yourcast)(void *)thing

Tim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]