Andrea,

What warnings do you get?

I haven't tried compiling WebCore and WebKit with -fstrict-aliasing. However, I suspect that the warnings and errors you get result from type punning through pointers. To make the code safe for strict aliasing, you would need to change all pointer-based type punning to union-based type punning.

I think there's a compiler warning flag, like -Wstrict-aliasing, that can help you track down unsafe type punning.

Geoff

On May 14, 2006, at 7:56 AM, Andrea Mannori wrote:

hi all,
trying to compile webcore and webkit framework with -fstrict- aliasing i get a lot of warning (considered error by default) ignoring them produce an unusefull code, as well as "correct" them (bus error and segmentation fault on start)
is just me?
ther a way to have a solution? i' d like to use this flag to use - ftree-vectorize also (on my g4)

andrea
_______________________________________________
webkit-dev mailing list
[email protected]
http://www.opendarwin.org/mailman/listinfo/webkit-dev

_______________________________________________
webkit-dev mailing list
[email protected]
http://www.opendarwin.org/mailman/listinfo/webkit-dev

Reply via email to