This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/54741] GCC 4.4, 4.5, 4.6 4.7 (probably 4.8) Generates un-usable code on AVX supported CPUs (FreeBSD)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54741

--- Comment #11 from M.S. Babaei <ace.of.zerosync at gmail dot com> 2012-10-02 16:58:57 UTC ---
Well well, something happened here!! This bug does not affect me anymore; Now
with or without your patch the above example code works just fine! I even tried
crypto++ which I had problem with in the past but it works fine too.

# uname -a
FreeBSD 13x17.localhost 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Sat Sep 29
20:53:22 IRST 2012     babaei@13x17.localhost:/usr/obj/usr/src/sys/GENERIC 
amd64

Two days ago I upgraded my system to 9-STABLE branch (a development branch),
looks like the FreeBSD folks implemented AVX support into thier kernel.

Hopefully I kept the old kernel. I rebuilt GCC 4.7 with your patch (GCC 4.6.4
is my system wide GCC and I'll won't mess with that one).
Then I booted to the old kernel and rebuilt the above example code and, hell
yeah!! Your patch does the job, the program finished normally with 'Hello,
World!' printed out on screen (Note: with old kernel without your patch, it
still get killed by SIGILL).

Since this is a development branch and is not out yet I believe your patch is
still relevant. Because out there 9.0, 8.3 and 7.4 is being used by people.  

And one more thing. Your patch is little different from my 'driver-i386.c' file
(gcc-4.7-20120929) and my patch command failed to merge it. I merged your patch
manually which is attached.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]