This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: vacation and strict aliasing
On Mon, Sep 13, 1999 at 03:28:54AM -0700, Russ Allbery <rra@stanford.edu> wrote:
> > Has anobdy made a list of programs that brak because of the aliasing
> > issue? I only know these:
>
> > - linux-kernel (known and worked around)
> > - perl (worked around, but its not clear wether theres a bug)
>
> Not at all clear. I don't get any test suite failures with a version of
> Perl prior to any workarounds and compiled with gcc 2.95. If it caused
> any bugs, they're pretty subtle.
I really wasn't clear ;) There is a workaround for a known issue that is
"invalid" code (XPVHV * vs. different * in different structs), but gcc
does not cause any harm.
That code is problematic anyway, as an XPVHV * need not have the same
layout as other pointers.
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@goof.com |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|