On 2011-12-10 02:21, Gleb Kurtsou wrote: > Please find test case and test results attached. (gcc-test1.shar.txt) > > The long story short: only gcc-4.2 is affected, gcc 3.4, 4.4 and 4.6 are > ok. clang is ok. (test-cc.txt) > > Nearly all of the workarounds I used in original test doesn't work in > this test case (see #ifdef BAD_FIX in sources). > > gcc 4.2 fails even with -O1, it has nothing to do with > -fno-omit-frame-pointer, finline-functions, etc. (test-cflags.txt) > > Compile with -DFIX1 to work around problem (replace struct assignment > with memcpy): > % make test XFLAGS="-O2 -DFIX1" > rm -f gcc-test1 src1.o src2.o src3.o > cc -O2 -DFIX1 -g -std=gnu99 -c src1.c > cc -O2 -DFIX1 -g -std=gnu99 -c src2.c > cc -O2 -DFIX1 -g -std=gnu99 -c src3.c > cc -O2 -DFIX1 -g -std=gnu99 -o gcc-test1 src1.o src2.o src3.o > /home/gleb/projects/gcc-test1/gcc-test1 > ok > > Happy hacking!
Hi Gleb, I did some bisecting, and I found the exact gcc trunk revision that fixes this bug: http://gcc.gnu.org/viewcvs?view=revision&revision=119760 So far the good news, now the bad news: this revision is actually a merge from gcc's mem-ssa branch! The full diff is almost 10,000 lines... Also, although it's still under GPLv2, the diff doesn't apply cleanly to our version. :( _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"