http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45505
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dave.ang...@nrc-cnrc.gc.ca, | |gerald at pfeifer dot com, | |pthaugen at us dot ibm.com, | |ro at CeBiTec dot | |Uni-Bielefeld.DE --- Comment #16 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-01-29 11:23:41 UTC --- The test "XPASSes" with -m32 on *86*-apple-darwin* (see http://gcc.gnu.org/ml/gcc-testresults/2011-01/msg02532.html http://gcc.gnu.org/ml/gcc-testresults/2011-01/msg02281.html ). The following patch cleans it. --- ../_clean/gcc/testsuite/gfortran.dg/pr25923.f90 2010-09-07 15:25:44.000000000 +0200 +++ gcc/testsuite/gfortran.dg/pr25923.f90 2011-01-09 14:13:01.000000000 +0100 @@ -10,7 +10,7 @@ implicit none contains - function baz(arg) result(res) ! { dg-warning "res.yr' may be" "PR45505" { xfail ilp32 } } + function baz(arg) result(res) ! { dg-warning "res.yr' may be" "PR45505" { xfail { ilp32 && { ! *86*-apple-darwin* } } } } type(bar), intent(in) :: arg type(bar) :: res logical, external:: some_func @@ -19,7 +19,7 @@ contains else res = arg end if - end function baz ! { dg-bogus "res.yr' may be" "PR45505" { xfail ilp32 } } + end function baz ! { dg-bogus "res.yr' may be" "PR45505" { xfail { ilp32 && { ! *86*-apple-darwin* } } } } end module foo Note also that this is also true for some hppa*-*-* and i386-unknown-freebsd9.0 (see http://gcc.gnu.org/ml/gcc-testresults/2011-01/msg02550.html http://gcc.gnu.org/ml/gcc-testresults/2011-01/msg02368.html http://gcc.gnu.org/ml/gcc-testresults/2011-01/msg02365.html ), while the test fails on alpha-dec-osf5.1b and on powerpc64-unknown-linux-gnu with -m64 (see http://gcc.gnu.org/ml/gcc-testresults/2011-01/msg02158.html http://gcc.gnu.org/ml/gcc-testresults/2011-01/msg02626.html ). I can adjust the above patch for these cases (and put *86* in a more canonical form), but I am not able to test it for these platforms.