aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2009-12-07 15:36:46 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2009-12-07 15:36:46 +0000
commit197eb5a168c47dbb71bd59cd45d71751d4874037 (patch)
tree0c740b6e8e7cbffe847bb5208005cb256aef7505
parentb17f98b1c541dbbb8a615063a0449b4c6245cbc2 (diff)
downloadgcc-197eb5a168c47dbb71bd59cd45d71751d4874037.zip
gcc-197eb5a168c47dbb71bd59cd45d71751d4874037.tar.gz
gcc-197eb5a168c47dbb71bd59cd45d71751d4874037.tar.bz2
re PR other/40302 (GCC must hard-require MPC before release)
PR other/40302 * gcc.dg/torture/builtin-math-6.c: Assume we have MPC. * gcc.dg/torture/builtin-math-7.c: Likewise. * gfortran.dg/complex_intrinsic_7.f90: Likewise. * gfortran.dg/complex_intrinsic_8.f90: Likewise. * gfortran.dg/integer_exponentiation_4.f90: Re-enable some tests. * lib/target-supports.exp (check_effective_target_mpc, check_effective_target_mpc_pow, check_effective_target_mpc_arc): Delete. From-SVN: r155045
-rw-r--r--gcc/testsuite/ChangeLog12
-rw-r--r--gcc/testsuite/gcc.dg/torture/builtin-math-6.c1
-rw-r--r--gcc/testsuite/gcc.dg/torture/builtin-math-7.c1
-rw-r--r--gcc/testsuite/gfortran.dg/complex_intrinsic_7.f901
-rw-r--r--gcc/testsuite/gfortran.dg/complex_intrinsic_8.f901
-rw-r--r--gcc/testsuite/gfortran.dg/integer_exponentiation_4.f909
-rw-r--r--gcc/testsuite/lib/target-supports.exp49
7 files changed, 16 insertions, 58 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0da60bd..edd2b46 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,15 @@
+2009-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ PR other/40302
+ * gcc.dg/torture/builtin-math-6.c: Assume we have MPC.
+ * gcc.dg/torture/builtin-math-7.c: Likewise.
+ * gfortran.dg/complex_intrinsic_7.f90: Likewise.
+ * gfortran.dg/complex_intrinsic_8.f90: Likewise.
+ * gfortran.dg/integer_exponentiation_4.f90: Re-enable some tests.
+ * lib/target-supports.exp (check_effective_target_mpc,
+ check_effective_target_mpc_pow, check_effective_target_mpc_arc):
+ Delete.
+
2009-12-07 Edmar Wienskoski <edmar@freescale.com>
* gcc.target/powerpc/ppc-eq0-1.c: Adjust testcase for isel
diff --git a/gcc/testsuite/gcc.dg/torture/builtin-math-6.c b/gcc/testsuite/gcc.dg/torture/builtin-math-6.c
index 097a8c2..462c7d3 100644
--- a/gcc/testsuite/gcc.dg/torture/builtin-math-6.c
+++ b/gcc/testsuite/gcc.dg/torture/builtin-math-6.c
@@ -6,7 +6,6 @@
Origin: Kaveh R. Ghazi, January 28, 2009. */
/* { dg-do link } */
-/* { dg-require-effective-target mpc_arc } */
/* All references to link_error should go away at compile-time. The
first number is the line number and the second is the value number
diff --git a/gcc/testsuite/gcc.dg/torture/builtin-math-7.c b/gcc/testsuite/gcc.dg/torture/builtin-math-7.c
index 86fd262..5bc4329 100644
--- a/gcc/testsuite/gcc.dg/torture/builtin-math-7.c
+++ b/gcc/testsuite/gcc.dg/torture/builtin-math-7.c
@@ -5,7 +5,6 @@
Origin: Kaveh R. Ghazi, August 13, 2009. */
/* { dg-do run } */
-/* { dg-require-effective-target mpc_pow } */
/* { dg-add-options ieee } */
extern void link_error(int);
diff --git a/gcc/testsuite/gfortran.dg/complex_intrinsic_7.f90 b/gcc/testsuite/gfortran.dg/complex_intrinsic_7.f90
index 7e6bfbe..dcc6bf9 100644
--- a/gcc/testsuite/gfortran.dg/complex_intrinsic_7.f90
+++ b/gcc/testsuite/gfortran.dg/complex_intrinsic_7.f90
@@ -1,5 +1,4 @@
! { dg-do compile }
-! { dg-require-effective-target mpc }
! { dg-options "-fdump-tree-original" }
!
! PR fortran/33197
diff --git a/gcc/testsuite/gfortran.dg/complex_intrinsic_8.f90 b/gcc/testsuite/gfortran.dg/complex_intrinsic_8.f90
index f9529a5..255449d 100644
--- a/gcc/testsuite/gfortran.dg/complex_intrinsic_8.f90
+++ b/gcc/testsuite/gfortran.dg/complex_intrinsic_8.f90
@@ -1,5 +1,4 @@
! { dg-do link }
-! { dg-require-effective-target mpc_arc }
!
! PR fortran/33197
!
diff --git a/gcc/testsuite/gfortran.dg/integer_exponentiation_4.f90 b/gcc/testsuite/gfortran.dg/integer_exponentiation_4.f90
index e934d28..655f651 100644
--- a/gcc/testsuite/gfortran.dg/integer_exponentiation_4.f90
+++ b/gcc/testsuite/gfortran.dg/integer_exponentiation_4.f90
@@ -38,10 +38,9 @@ program test
print *, nearest(1.0,-1.0)**(-huge(0)) ! { dg-error "Arithmetic overflow" }
!!!!!! COMPLEX BASE !!!!!!
-! Put these lines back in (and "no-" -> "dg-") prior to gcc-4.5.
-! print *, (2.0,-4.3)**huge(0) ! { no-error "Arithmetic overflow" }
-! print *, (2.0,-4.3)**huge(0_8) ! { no-error "Arithmetic overflow" }
-! print *, (2.0,-4.3)**(-huge(0))
-! print *, (2.0,-4.3)**(-huge(0_8))
+ print *, (2.0,-4.3)**huge(0) ! { dg-error "Arithmetic overflow" }
+ print *, (2.0,-4.3)**huge(0_8) ! { dg-error "Arithmetic overflow" }
+ print *, (2.0,-4.3)**(-huge(0))
+ print *, (2.0,-4.3)**(-huge(0_8))
end program test
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 5155cba..df3158a 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -3140,55 +3140,6 @@ proc check_effective_target_lto { } {
return [info exists ENABLE_LTO]
}
-# Return 1 if the MPC library is integrated with GCC, 0 otherwise.
-
-proc check_effective_target_mpc { } {
- return [check_no_compiler_messages mpc executable {
- extern void link_error(void);
- int main ()
- {
- if (__builtin_csin(0) != 0)
- link_error();
- }
- }]
-}
-
-# Return 1 if the MPC library with mpc_pow is integrated with GCC, 0 otherwise.
-
-proc check_effective_target_mpc_pow { } {
- return [check_no_compiler_messages mpc_pow executable {
- extern void link_error(void);
- int main ()
- {
- if (__builtin_cpow(1,1) != 1)
- link_error();
- }
- }]
-}
-
-# Return 1 if the MPC library with "arc" functions is integrated with GCC, 0 otherwise.
-
-proc check_effective_target_mpc_arc { } {
- return [check_no_compiler_messages mpc_arc executable {
- extern void link_error(void);
- int main ()
- {
- if (__builtin_cacos(1) != 0)
- link_error();
- if (__builtin_casin(0) != 0)
- link_error();
- if (__builtin_catan(0) != 0)
- link_error();
- if (__builtin_cacosh(1) != 0)
- link_error();
- if (__builtin_casinh(0) != 0)
- link_error();
- if (__builtin_catanh(0) != 0)
- link_error();
- }
- }]
-}
-
# Return 1 if the language for the compiler under test is C.
proc check_effective_target_c { } {