Package segfaults when built with -O2 but not with -O0

Henrik Nordström henrik at henriknordstrom.net
Tue Nov 22 23:25:31 UTC 2011


lör 2011-11-19 klockan 00:23 -0500 skrev Gregory Maxwell:

> This use to be more true, but there are multiple levels of -Wstrict-aliasing and
> I would be _highly_ surprised if the default gave a false alarm. I think you
> can reliably say that if you get a warning at the default level then you do
> have a language standards conformance problem, and that it actually changes
> the generated code... but maybe you don't actually crash on any
> particular system.

A note here is that we do have packages crashing on ARM due to strict
aliasing issues where the same code works fine on x86_64. presumablu due
to differences in register usage.

Regrads
Henrik



More information about the devel mailing list