diff options
author | Tom de Vries <tom@codesourcery.com> | 2014-08-07 07:22:35 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2014-08-07 07:22:35 +0000 |
commit | 87db77bb25d2f78a10d138da06d518331d3e641e (patch) | |
tree | 265319fa4d2342e526ffc7aa5d16c3afc85d2e9c /gcc | |
parent | b85e2cb05e81531989bfd0ebde25a3b2badc6162 (diff) | |
download | gcc-87db77bb25d2f78a10d138da06d518331d3e641e.zip gcc-87db77bb25d2f78a10d138da06d518331d3e641e.tar.gz gcc-87db77bb25d2f78a10d138da06d518331d3e641e.tar.bz2 |
Remove cproj-fails-with-broken-glibc.c
2014-08-07 Tom de Vries <tom@codesourcery.com>
* gcc.dg/cproj-fails-with-broken-glibc.c: Remove test.
* lib/target-supports.exp (check_effective_target_glibc)
(check_effective_target_glibc_2_12_or_later)
(check_effective_target_glibc_2_11_or_earlier): Remove proc.
* doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
(glibc_2_11_or_earlier): Remove effective-target keywords.
From-SVN: r213694
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/sourcebuild.texi | 9 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cproj-fails-with-broken-glibc.c | 25 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 38 |
5 files changed, 12 insertions, 72 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 001ad2c..f786119 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-07 Tom de Vries <tom@codesourcery.com> + + * doc/sourcebuild.texi (glibc, glibc_2_12_or_later) + (glibc_2_11_or_earlier): Remove effective-target keywords. + 2014-08-04 Tom de Vries <tom@codesourcery.com> * doc/sourcebuild.texi (glibc, glibc_2_12_or_later) diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 0793f80..39152df 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1804,15 +1804,6 @@ Target is a VxWorks RTP. @item wchar Target supports wide characters. - -@item glibc -Target supports glibc - -@item glibc_2_12_or_later -Target supports glibc 2.12 or later - -@item glibc_2_11_or_earlier -Target supports glibc 2.11 or earlier @end table @subsubsection Other attributes diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8e592fe..c93069b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2014-08-07 Tom de Vries <tom@codesourcery.com> + + * gcc.dg/cproj-fails-with-broken-glibc.c: Remove test. + * lib/target-supports.exp (check_effective_target_glibc) + (check_effective_target_glibc_2_12_or_later) + (check_effective_target_glibc_2_11_or_earlier): Remove proc. + 2014-08-04 Tom de Vries <tom@codesourcery.com> * gcc.dg/cproj-fails-with-broken-glibc.c: Use xfail for broken glibc diff --git a/gcc/testsuite/gcc.dg/cproj-fails-with-broken-glibc.c b/gcc/testsuite/gcc.dg/cproj-fails-with-broken-glibc.c deleted file mode 100644 index fc37fac..0000000 --- a/gcc/testsuite/gcc.dg/cproj-fails-with-broken-glibc.c +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright (C) 2010 Free Software Foundation. - - Check the runtime behavior of the C library's cproj() function and - whether it follows the standard. Versions of GLIBC through 2.11.1 - had an incorrect implementation which will conflict with GCC's - builtin cproj(). GLIBC 2.12+ should be okay. - - Origin: Kaveh R. Ghazi, April 20, 2010. */ - -/* { dg-do run { xfail glibc_2_11_or_earlier } } */ -/* { dg-options "-fno-builtin-cproj" } */ -/* { dg-add-options c99_runtime } */ -/* { dg-require-effective-target c99_runtime } */ - -extern void abort(void); -extern void exit(int); -double _Complex cproj(double _Complex); - -int main (void) -{ - if (cproj (2+3i) != 2+3i) - abort(); - - exit(0); -} diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7157d2a..fa5137e 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5038,44 +5038,6 @@ proc check_effective_target_newlib {} { }] } -# Return true if this is a glibc target. - -proc check_effective_target_glibc {} { - return [check_no_compiler_messages glibc object { - #include <features.h> - #if !(defined (__GLIBC__) && defined (__GLIBC_MINOR__)) - #error FOO - #endif - }] -} - -# Return true if this is a glibc 2.12 or later target. - -proc check_effective_target_glibc_2_12_or_later {} { - return [check_no_compiler_messages glibc_2_12_or_later object { - #include <features.h> - #if !(defined (__GLIBC__) && defined (__GLIBC_MINOR__) \ - && __GLIBC_PREREQ(2,12)) - #error FOO - #endif - }] -} - -# Return true if this is a glibc 2.11 or earlier target. - -proc check_effective_target_glibc_2_11_or_earlier {} { - - if { ![check_effective_target_glibc] } { - return 1 - } - - if { [check_effective_target_glibc_2_12_or_later] } { - return 0 - } - - return 1 -} - # Return true if this is NOT a Bionic target. proc check_effective_target_non_bionic {} { |