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

Marcin Mirosław marcin at mejor.pl
Mon Jan 20 14:05:45 MSK 2014


W dniu 18.01.2014 13:37, Michael Tokarev pisze:
> 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.

Hi!
I've tested using various CFLAGS and it works as expected.
Thanks Michael!

Marcin


More information about the udns mailing list