diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-01 10:19:18 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-01 10:19:18 +0000 |
commit | a97c0e1e336366cd53fcd95e00e49fd72b154fa6 (patch) | |
tree | e82424aba4ceeda9dfa0e50d5a314603ca415e3d /gcc/testsuite | |
parent | 6bf1e21f89e43e23336eaa4ee4f40987cd01d495 (diff) | |
download | gcc-a97c0e1e336366cd53fcd95e00e49fd72b154fa6.tar.gz |
2011-02-01 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 169468
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@169469 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
21 files changed, 246 insertions, 31 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 284d6509c44..8164cf4c198 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,200 @@ +2011-02-01 Richard Guenther <rguenther@suse.de> + + PR tree-optimization/47541 + * g++.dg/torture/pr47541.C: New testcase. + +2011-01-31 Janus Weil <janus@gcc.gnu.org> + + PR fortran/47455 + * gfortran.dg/typebound_call_19.f03: New. + +2011-01-31 Jakub Jelinek <jakub@redhat.com> + + PR c++/47416 + * g++.dg/cpp0x/pr47416.C: New test. + +2011-01-31 Paul Thomas <pault@gcc.gnu.org> + + PR fortran/47519 + * gfortran.dg/allocate_deferred_char_scalar_2.f03: New test. + +2011-01-31 Janus Weil <janus@gcc.gnu.org> + + PR fortran/47463 + * gfortran.dg/typebound_assignment_1.f03: New. + +2011-01-31 Jakub Jelinek <jakub@redhat.com> + + PR tree-optimization/47538 + * gcc.c-torture/execute/pr47538.c: New test. + +2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + PR target/45325 + * gcc.target/i386/pr38240.c: Add dg-options "-msse". + +2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * g++.dg/abi/mangle40.C: Pass "" to dg-require-weak. + +2011-01-31 Eric Botcazou <ebotcazou@adacore.com> + + PR rtl-optimization/44031 + * gcc.c-torture/compile/20110131-1.c: New test. + +2011-01-31 Tobias Burnus <burnus@net-b.de> + + PR fortran/47042 + * gfortran.dg/stmt_func_1.f90: New. + +2011-01-31 Tobias Burnus <burnus@net-b.de> + + PR fortran/47042 + * gfortran.dg/interface_34.f90: New. + +2011-01-30 Paul Thomas <pault@gcc.gnu.org> + + PR fortran/47523 + * gfortran.dg/realloc_on_assign_5.f03: New test. + * gfortran.dg/realloc_on_assign_5.f03: New test. + +2011-01-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + + * gfortran.dg/bessel_6.f90: XFAIL on spu-*-*. + * gfortran.dg/bessel_7.f90: Likewise. + * gfortran.dg/erf_2.F90: Likewise. Always run with -O0. + + * gfortran.dg/complex_intrinsics_5.f90: Increase "epsilon". + * gfortran.dg/sum_init_expr.f03: Likewise. + + * gfortran.dg/realloc_on_assign_2.f03: Skip on spu-*-*. + + * gfortran.dg/lto/20091016-1_0.f90: Replace -shared with + -r -nostdlib. + + * gfortran.dg/vect/fast-math-vect-8.f90: Check for vectorized + loop only on "vect_intfloat_cvt" targets. + +2011-01-29 Tobias Burnus <burnus@net-b.de> + + PR fortran/47531 + * gfortran.dg/shape_6.f90: New. + +2011-01-29 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/47434 + * gfortran.dg/read_infnan_1.f90: Update test. + * gfortran.dg/module_nan.f90: Update test. + * gfortran.dg/char4_iunit_1.f03: Update test. + * gfortran.dg/large_real_kind_1.f90: Update test. + * gfortran.dg/real_const_3.f90: Update test. + * gfortran.fortran-torture/execute/nan_inf_fmt.f90: Update test. + +2011-01-29 Dodji Seketeli <dodji@redhat.com> + + PR c++/47311 + * g++.dg/template/param2.C: New test. + +2011-01-28 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/47285 + * gfortran.dg/fmt_g.f: New test. + +2011-01-28 Tobias Burnus <burnus@net-b.de> + + PR fortran/47507 + * gfortran.dg/pure_formal_1.f90: New. + +2011-01-28 Jakub Jelinek <jakub@redhat.com> + + PR target/42894 + * gcc.dg/tls/pr42894.c: New test. + +2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * gcc.dg/pr47276.c: Add dg-require-visibility. + +2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * gcc.target/i386/asm-6.c: XFAIL on i?86-pc-solaris2.1[0-9] && ilp32. + +2011-01-28 Paul Thomas <pault@gcc.gnu.org> + Tobias Burnus <burnus@gcc.gnu.org> + + PR fortran/45170 + PR fortran/35810 + PR fortran/47350 + * gfortran.dg/realloc_on_assign_3.f03: New test. + * gfortran.dg/realloc_on_assign_4.f03: New test. + * gfortran.dg/allocatable_function_5.f90: New test. + * gfortran.dg/allocate_deferred_char_scalar_1.f03: New test. + * gfortran.dg/deferred_type_param_2.f90: Remove two "not yet + implemented" dg-errors. + +2011-01-27 Jan Hubicka <jh@suse.cz> + + PR middle-end/46949 + * gcc.dg/attr-weakref-4.c: New testcase + +2011-01-27 Martin Jambor <mjambor@suse.cz> + + PR tree-optimization/47228 + * gcc.dg/torture/pr47228.c: New test. + +2011-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> + + * gcc.dg/tree-ssa/pr42585.c: Disable on s390 and s390x. + +2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + + * lib/compat.exp (compat-execute): Pass -Wl,--extra-stack-space=8192 + when using auto-overlay support on the SPU. + +2011-01-27 Eric Botcazou <ebotcazou@adacore.com> + + PR rtl-optimization/44174 + * gcc.target/i386/asm-6.c: New test. + +2011-01-26 Mikael Pettersson <mikpe@it.uu.se> + + PR rtl-optimization/46856 + * gcc.c-torture/compile/pr46856.c: New test. + +2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com> + Andrew Pinski <pinskia@gmail.com> + + PR c/43082 + * gcc.dg/pr43082.c: New. + +2011-01-26 DJ Delorie <dj@redhat.com> + + PR rtl-optimization/46878 + * gcc.dg/pr46878-1.c: New test. + +2011-01-26 Jakub Jelinek <jakub@redhat.com> + + PR c++/47476 + * g++.dg/cpp0x/pr47476.C: New test. + +2011-01-26 Eric Botcazou <ebotcazou@adacore.com> + + * gcc.c-torture/compile/20110126-1.c: New test. + +2011-01-26 Jakub Jelinek <jakub@redhat.com> + + PR c/47473 + * gcc.dg/torture/pr47473.c: New test. + +2011-01-26 Jan Hubicka <jh@suse.cz> + + PR target/47237 + * gcc.c-torture/execute/pr47237.c: New testcase. + +2011-01-26 Jan Hubicka <jh@suse.cz> + + PR tree-optimization/47190 + * gcc.dg/attr-weakref-3.c: New testcase. + 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com> PR c++/43601 diff --git a/gcc/testsuite/g++.dg/abi/mangle40.C b/gcc/testsuite/g++.dg/abi/mangle40.C index 22e323f0d38..2b8300bff6f 100644 --- a/gcc/testsuite/g++.dg/abi/mangle40.C +++ b/gcc/testsuite/g++.dg/abi/mangle40.C @@ -1,6 +1,6 @@ // PR c++/12909 // { dg-do compile { target i?86-*-* x86_64-*-* } } -// { dg-require-weak } +// { dg-require-weak "" } // { dg-require-alias "" } // { dg-options "-mavx -Wabi -fabi-version=2" } // { dg-final { scan-assembler "(weak|glob)\[^\n\]*_Z1fIDv4_fEvT_" } } diff --git a/gcc/testsuite/gcc.dg/pr47276.c b/gcc/testsuite/gcc.dg/pr47276.c index ae1e81a0aa5..3fa1a0e49a8 100644 --- a/gcc/testsuite/gcc.dg/pr47276.c +++ b/gcc/testsuite/gcc.dg/pr47276.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-require-alias "" } */ +/* { dg-require-visibility "" } */ extern void syslog (int __pri, __const char *__fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3))); extern void vsyslog (int __pri, __const char *__fmt, int __ap) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr42585.c b/gcc/testsuite/gcc.dg/tree-ssa/pr42585.c index 2e32ac53c80..52f21fe1b7e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr42585.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr42585.c @@ -32,6 +32,9 @@ Cyc_string_ungetc (int ignore, struct _fat_ptr *sptr) } /* The local aggregates . */ -/* { dg-final { scan-tree-dump-times "struct _fat_ptr _ans" 0 "optimized" { target { { { ! powerpc*-*-* } && { ! arm-*-* } } && { ! sh*-*-* } } } } } */ -/* { dg-final { scan-tree-dump-times "struct _fat_ptr _T2" 0 "optimized" { target { { { ! powerpc*-*-* } && { ! arm-*-* } } && { ! sh*-*-* } } } } } */ +/* Whether the structs are totally scalarized or not depends on the + MOVE_RATIO macro defintion in the back end. The scalarization will + not take place when using small values for MOVE_RATIO. */ +/* { dg-final { scan-tree-dump-times "struct _fat_ptr _ans" 0 "optimized" { target { ! "powerpc*-*-* arm-*-* sh*-*-* s390*-*-*" } } } } */ +/* { dg-final { scan-tree-dump-times "struct _fat_ptr _T2" 0 "optimized" { target { ! "powerpc*-*-* arm-*-* sh*-*-* s390*-*-*" } } } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr38240.c b/gcc/testsuite/gcc.target/i386/pr38240.c index 6a3568754b3..99e875894d2 100644 --- a/gcc/testsuite/gcc.target/i386/pr38240.c +++ b/gcc/testsuite/gcc.target/i386/pr38240.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-options "-msse" } */ typedef float V __attribute__ ((__vector_size__ (16), __may_alias__)); diff --git a/gcc/testsuite/gfortran.dg/bessel_6.f90 b/gcc/testsuite/gfortran.dg/bessel_6.f90 index 857d557fe30..e760d4cdb74 100644 --- a/gcc/testsuite/gfortran.dg/bessel_6.f90 +++ b/gcc/testsuite/gfortran.dg/bessel_6.f90 @@ -1,8 +1,11 @@ -! { dg-do run } +! { dg-do run { xfail spu-*-* } } ! ! PR fortran/36158 ! PR fortran/33197 ! +! XFAILed for SPU targets since we don't have an accurate library +! implementation of the single-precision Bessel functions. +! ! Run-time tests for transformations BESSEL_JN ! implicit none diff --git a/gcc/testsuite/gfortran.dg/bessel_7.f90 b/gcc/testsuite/gfortran.dg/bessel_7.f90 index 8c4f0d915a3..10a6e966dfa 100644 --- a/gcc/testsuite/gfortran.dg/bessel_7.f90 +++ b/gcc/testsuite/gfortran.dg/bessel_7.f90 @@ -1,4 +1,4 @@ -! { dg-do run { xfail *-*-mingw* } } +! { dg-do run { xfail *-*-mingw* spu-*-* } } ! ! PR fortran/36158 ! PR fortran/33197 @@ -7,6 +7,9 @@ ! of BESSEL_YN(n,x) has different results. It returns NAN rather than ! -INF for "x=0.0" and all "n". ! +! XFAILed for SPU targets since we don't have an accurate library +! implementation of the single-precision Bessel functions. +! ! Run-time tests for transformations BESSEL_YN ! implicit none diff --git a/gcc/testsuite/gfortran.dg/char4_iunit_1.f03 b/gcc/testsuite/gfortran.dg/char4_iunit_1.f03 index 57b3f78702f..5b1b285adf2 100644 --- a/gcc/testsuite/gfortran.dg/char4_iunit_1.f03 +++ b/gcc/testsuite/gfortran.dg/char4_iunit_1.f03 @@ -26,9 +26,9 @@ program char4_iunit_1 write(string, *) 1.2345e-06, 4.2846e+10_8 if (string .ne. 4_" 1.23450002E-06 42846000000.000000 ") call abort write(string, *) nan, inf - if (string .ne. 4_" NaN +Infinity ") call abort + if (string .ne. 4_" NaN Infinity ") call abort write(string, '(10x,f3.1,3x,f9.1)') nan, inf - if (string .ne. 4_" NaN +Infinity ") call abort + if (string .ne. 4_" NaN Infinity ") call abort write(string, *) (1.2, 3.4 ) if (string .ne. 4_" ( 1.2000000 , 3.4000001 ) ") call abort end program char4_iunit_1 diff --git a/gcc/testsuite/gfortran.dg/complex_intrinsic_5.f90 b/gcc/testsuite/gfortran.dg/complex_intrinsic_5.f90 index 15706b9b397..49b8eaaa68e 100644 --- a/gcc/testsuite/gfortran.dg/complex_intrinsic_5.f90 +++ b/gcc/testsuite/gfortran.dg/complex_intrinsic_5.f90 @@ -9,7 +9,7 @@ ! module test implicit none - real(4), parameter :: eps4 = epsilon(0.0_4)*2.0_4 + real(4), parameter :: eps4 = epsilon(0.0_4)*4.0_4 real(8), parameter :: eps8 = epsilon(0.0_8)*2.0_8 interface check procedure check4, check8 diff --git a/gcc/testsuite/gfortran.dg/deferred_type_param_2.f90 b/gcc/testsuite/gfortran.dg/deferred_type_param_2.f90 index 7bfd2a6ece0..8ac48c3f153 100644 --- a/gcc/testsuite/gfortran.dg/deferred_type_param_2.f90 +++ b/gcc/testsuite/gfortran.dg/deferred_type_param_2.f90 @@ -34,9 +34,9 @@ subroutine three() str1 = ["abc"] pstr2 => str1 - allocate (character(len=77) :: str1(1)) ! OK ! { dg-error "not yet implemented" } - allocate (pstr, source=str2) ! OK ! { dg-error "not yet implemented" } - allocate (pstr, mold=str2) ! { dg-error "requires either a type-spec or SOURCE tag" } + allocate (character(len=77) :: str1(1)) + allocate (pstr, source=str2) + allocate (pstr, mold=str2) allocate (pstr) ! { dg-error "requires either a type-spec or SOURCE tag" } allocate (character(len=:) :: str1(1)) ! { dg-error "cannot contain a deferred type parameter" } diff --git a/gcc/testsuite/gfortran.dg/erf_2.F90 b/gcc/testsuite/gfortran.dg/erf_2.F90 index 087dfd38e19..c92f45b0476 100644 --- a/gcc/testsuite/gfortran.dg/erf_2.F90 +++ b/gcc/testsuite/gfortran.dg/erf_2.F90 @@ -1,7 +1,10 @@ -! { dg-do run } -! { dg-options "-fno-range-check -ffree-line-length-none " } +! { dg-do run { xfail spu-*-* } } +! { dg-options "-fno-range-check -ffree-line-length-none -O0" } ! { dg-add-options ieee } ! +! XFAILed for SPU targets because our library implementation of +! the double-precision erf/erfc functions is not accurate enough. +! ! Check that simplification functions and runtime library agree on ERF, ! ERFC and ERFC_SCALED. diff --git a/gcc/testsuite/gfortran.dg/large_real_kind_1.f90 b/gcc/testsuite/gfortran.dg/large_real_kind_1.f90 index 5c741ad6cb5..28e406730fa 100644 --- a/gcc/testsuite/gfortran.dg/large_real_kind_1.f90 +++ b/gcc/testsuite/gfortran.dg/large_real_kind_1.f90 @@ -56,7 +56,7 @@ program test call testoutput (-7.51e-100_k,-7.51e-100_8,15,'(F15.10)') x = huge(x) - call outputstring (2*x,'(F20.15)',' +Infinity') + call outputstring (2*x,'(F20.15)',' Infinity') call outputstring (-2*x,'(F20.15)',' -Infinity') write (c1,'(G20.10E5)') x diff --git a/gcc/testsuite/gfortran.dg/lto/20091016-1_0.f90 b/gcc/testsuite/gfortran.dg/lto/20091016-1_0.f90 index c26ad90fbe2..a882da042cd 100644 --- a/gcc/testsuite/gfortran.dg/lto/20091016-1_0.f90 +++ b/gcc/testsuite/gfortran.dg/lto/20091016-1_0.f90 @@ -1,5 +1,5 @@ ! { dg-lto-do link } -! { dg-lto-options {{-flto -g -fPIC -shared} {-O -flto -g -fPIC -shared}} } +! { dg-lto-options {{-flto -g -fPIC -r -nostdlib} {-O -flto -g -fPIC -r -nostdlib}} } FUNCTION makenumberstring(x) IMPLICIT NONE diff --git a/gcc/testsuite/gfortran.dg/module_nan.f90 b/gcc/testsuite/gfortran.dg/module_nan.f90 index ed841a891ab..202781f07c2 100644 --- a/gcc/testsuite/gfortran.dg/module_nan.f90 +++ b/gcc/testsuite/gfortran.dg/module_nan.f90 @@ -19,7 +19,7 @@ program a if (log(abs(inf)) < huge(inf)) call abort() if (log(abs(minf)) < huge(inf)) call abort() if (.not. isnan(nan)) call abort() - write(str,*) inf + write(str,"(sp,f10.2)") inf if (adjustl(str) /= "+Infinity") call abort() write(str,*) minf if (adjustl(str) /= "-Infinity") call abort() diff --git a/gcc/testsuite/gfortran.dg/read_infnan_1.f90 b/gcc/testsuite/gfortran.dg/read_infnan_1.f90 index 515a6900270..c5023e8fe22 100644 --- a/gcc/testsuite/gfortran.dg/read_infnan_1.f90 +++ b/gcc/testsuite/gfortran.dg/read_infnan_1.f90 @@ -22,9 +22,9 @@ read(10,'(7f10.3)') x4 rewind(10) read(10,'(7f10.3)') x8 write (output, '("x4 =",7G6.0)') x4 -if (output.ne."x4 = +Inf NaN +Inf NaN -Inf NaN +Inf") call abort +if (output.ne."x4 = Inf NaN Inf NaN -Inf NaN Inf") call abort write (output, '("x8 =",7G6.0)') x8 -if (output.ne."x8 = +Inf NaN +Inf NaN -Inf NaN +Inf") call abort +if (output.ne."x8 = Inf NaN Inf NaN -Inf NaN Inf") call abort !print '("x4 =",7G6.0)', x4 !print '("x8 =",7G6.0)', x8 end program pr43298 diff --git a/gcc/testsuite/gfortran.dg/real_const_3.f90 b/gcc/testsuite/gfortran.dg/real_const_3.f90 index f428750ed0d..9f3f5d837d7 100644 --- a/gcc/testsuite/gfortran.dg/real_const_3.f90 +++ b/gcc/testsuite/gfortran.dg/real_const_3.f90 @@ -16,7 +16,7 @@ program main b = 1/exp(1000.0) write(str,*) a - if (trim(adjustl(str)) .ne. '+Infinity') call abort + if (trim(adjustl(str)) .ne. 'Infinity') call abort if (b .ne. 0.) call abort @@ -36,7 +36,7 @@ program main if (trim(adjustl(str)) .ne. '-Infinity') call abort write(str,*) 3.0/0. - if (trim(adjustl(str)) .ne. '+Infinity') call abort + if (trim(adjustl(str)) .ne. 'Infinity') call abort write(str,*) nan if (trim(adjustl(str)) .ne. 'NaN') call abort @@ -48,7 +48,7 @@ program main if (trim(adjustl(str)) .ne. '( NaN, NaN)') call abort write(str,*) z3 - if (trim(adjustl(str)) .ne. '( +Infinity, -Infinity)') call abort + if (trim(adjustl(str)) .ne. '( Infinity, -Infinity)') call abort write(str,*) z4 if (trim(adjustl(str)) .ne. '( 0.0000000 , -0.0000000 )') call abort diff --git a/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03 b/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03 index e3091102697..0564d0d5064 100644 --- a/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03 +++ b/gcc/testsuite/gfortran.dg/realloc_on_assign_2.f03 @@ -1,4 +1,5 @@ ! { dg-do run } +! { dg-skip-if "Too big for local store" { spu-*-* } { "*" } { "" } } ! Tests the patch that implements F2003 automatic allocation and ! reallocation of allocatable arrays on assignment. The tests ! below were generated in the final stages of the development of diff --git a/gcc/testsuite/gfortran.dg/sum_init_expr.f03 b/gcc/testsuite/gfortran.dg/sum_init_expr.f03 index fc9701ce86d..9071a41f43c 100644 --- a/gcc/testsuite/gfortran.dg/sum_init_expr.f03 +++ b/gcc/testsuite/gfortran.dg/sum_init_expr.f03 @@ -52,14 +52,14 @@ CONTAINS SUBROUTINE rlib (array, result) REAL, DIMENSION(:,:), INTENT(in) :: array REAL, INTENT(in) :: result - IF (ABS(SUM(array) - result) > 2e-6) CALL abort() + IF (ABS(SUM(array) - result) > 4e-6) CALL abort() END SUBROUTINE SUBROUTINE rlib_with_dim (array, dim, result) REAL, DIMENSION(:,:), INTENT(in) :: array INTEGER, INTENT(iN) :: dim REAL, DIMENSION(:), INTENT(in) :: result - IF (ANY (ABS(SUM (array, dim=dim) - result) > 2e-6)) CALL abort() + IF (ANY (ABS(SUM (array, dim=dim) - result) > 4e-6)) CALL abort() END SUBROUTINE END diff --git a/gcc/testsuite/gfortran.dg/vect/fast-math-vect-8.f90 b/gcc/testsuite/gfortran.dg/vect/fast-math-vect-8.f90 index 918943f93a9..26d850de961 100644 --- a/gcc/testsuite/gfortran.dg/vect/fast-math-vect-8.f90 +++ b/gcc/testsuite/gfortran.dg/vect/fast-math-vect-8.f90 @@ -89,5 +89,6 @@ contains end module solv_cap -! { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } + +! { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_intfloat_cvt } } } ! { dg-final { cleanup-tree-dump "vect" } } diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/nan_inf_fmt.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/nan_inf_fmt.f90 index 22e17d12eb2..2ded0cbbb62 100644 --- a/gcc/testsuite/gfortran.fortran-torture/execute/nan_inf_fmt.f90 +++ b/gcc/testsuite/gfortran.fortran-torture/execute/nan_inf_fmt.f90 @@ -1,4 +1,5 @@ !pr 12839- F2003 formatting of Inf /Nan +! Modified for PR47434 implicit none character*40 l character*12 fmt @@ -15,11 +16,11 @@ ! check a field width = 0 fmt = '(F0.0)' write(l,fmt=fmt)pos_inf - if (l.ne.'+Inf') call abort + if (l.ne.'Inf') call abort write(l,fmt=fmt)neg_inf if (l.ne.'-Inf') call abort write(l,fmt=fmt)nan - if (l.ne.' NaN') call abort + if (l.ne.'NaN') call abort ! check a field width < 3 fmt = '(F2.0)' @@ -42,7 +43,7 @@ ! check a field width > 3 fmt = '(F4.0)' write(l,fmt=fmt)pos_inf - if (l.ne.'+Inf') call abort + if (l.ne.' Inf') call abort write(l,fmt=fmt)neg_inf if (l.ne.'-Inf') call abort write(l,fmt=fmt)nan @@ -51,7 +52,7 @@ ! check a field width = 7 fmt = '(F7.0)' write(l,fmt=fmt)pos_inf - if (l.ne.' +Inf') call abort + if (l.ne.' Inf') call abort write(l,fmt=fmt)neg_inf if (l.ne.' -Inf') call abort write(l,fmt=fmt)nan @@ -60,7 +61,7 @@ ! check a field width = 8 fmt = '(F8.0)' write(l,fmt=fmt)pos_inf - if (l.ne.' +Inf') call abort + if (l.ne.'Infinity') call abort write(l,fmt=fmt)neg_inf if (l.ne.' -Inf') call abort write(l,fmt=fmt)nan @@ -69,7 +70,7 @@ ! check a field width = 9 fmt = '(F9.0)' write(l,fmt=fmt)pos_inf - if (l.ne.'+Infinity') call abort + if (l.ne.' Infinity') call abort write(l,fmt=fmt)neg_inf if (l.ne.'-Infinity') call abort write(l,fmt=fmt)nan @@ -78,7 +79,7 @@ ! check a field width = 14 fmt = '(F14.0)' write(l,fmt=fmt)pos_inf - if (l.ne.' +Infinity') call abort + if (l.ne.' Infinity') call abort write(l,fmt=fmt)neg_inf if (l.ne.' -Infinity') call abort write(l,fmt=fmt)nan diff --git a/gcc/testsuite/lib/compat.exp b/gcc/testsuite/lib/compat.exp index 84053f3ecbd..3ce3221d186 100644 --- a/gcc/testsuite/lib/compat.exp +++ b/gcc/testsuite/lib/compat.exp @@ -288,6 +288,7 @@ proc compat-execute { src1 sid use_alt } { # Use automatic overlay support to make them fit. if { [check_effective_target_spu_auto_overlay] } { set extra_flags_1 "$extra_flags_1 -Wl,--auto-overlay" + set extra_flags_1 "$extra_flags_1 -Wl,--extra-stack-space=8192" set extra_flags_1 "$extra_flags_1 -ffunction-sections" set extra_flags_2 "$extra_flags_2 -ffunction-sections" set extra_flags_3 "$extra_flags_3 -ffunction-sections" |