This patch applied upstream http://sources.redhat.com/ml/libc-hacker/2003-12/msg00025.html is supposed to fix about 900 test failures in the libjava testsuite in gcc-3.4. Note that I didn't test the patch myself.
Matthias Compare the Debian test results http://gcc.gnu.org/ml/gcc-testresults/2004-03/msg00816.html === libjava Summary === # of expected passes 1487 # of unexpected failures 900 # of expected failures 4 # of untested testcases 908 with Ulrich's test results http://gcc.gnu.org/ml/gcc-testresults/2004-04/msg00098.html === libjava Summary === # of expected passes 3259 # of unexpected failures 2 # of expected failures 11 # of untested testcases 8