Miscompilation with "-fpeel-loops" and -O{2,3,s}

Michael Tokarev mjt at tls.msk.ru
Sat Jan 18 16:37:25 MSK 2014


29.12.2013 17:54, Marcin Mirosław wrote:
[]
> Hi Michael!
> Would you please take a look at
> http://www.mail-archive.com/jabberd2@lists.xiaoka.com/msg02225.html ? It
> looks gcc with -O2 on SPARC miscompiles udns.

This is all due to strict-aliasing rules which udns code breaks.

I fixed this by refactoring list code in udns_resolver.c, so now
everything should be fine.

I'm releasing 0.3 version with a very small amount of bugfixes.

Thanks,

/mjt


More information about the udns mailing list