It's seems that the hardened gcc 3.4.6 is bugged when using -fno-strict-aliasing -O2. It overlaps the address of a stack variable with the return address. This leads to crashing apps like clamav-0.95.2 scanning certain files. More information here: http://bugs.gentoo.org/show_bug.cgi?id=275928#c29 https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1653#c22 Reproducible: Always
GCC 4.3.4 is stable on hardened. GCC 3.4.x is frozen/not being worked on. Closing as WONTFIX.