This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Implement TARGET_ATOMIC_ASSIGN_EXPAND_FENV for powerpc*-*-linux* soft-float and e500
- From: Pat Haugen <pthaugen at linux dot vnet dot ibm dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Cc: dje dot gcc at gmail dot com
- Date: Tue, 04 Nov 2014 16:35:26 -0600
- Subject: Re: Implement TARGET_ATOMIC_ASSIGN_EXPAND_FENV for powerpc*-*-linux* soft-float and e500
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1411011219140 dot 17730 at digraph dot polyomino dot org dot uk>
On 11/01/2014 07:20 AM, Joseph S. Myers wrote:
This patch implements support for TARGET_ATOMIC_ASSIGN_EXPAND_FENV for
powerpc*-*-linux* soft-float and e500, provided GCC is configured for
glibc 2.19 or later on the target.
The patch causes a bootstrap error on targets with glibc < 2.19 for
defined but unused variables. The following fixes that and was committed
as obvious.
-Pat
2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
* config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
atomic_update_decl): Guard declaration with #ifdef.
Index: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c (revision 217101)
+++ gcc/config/rs6000/rs6000.c (working copy)
@@ -34590,8 +34590,10 @@ make_pass_analyze_swaps (gcc::context *c
return new pass_analyze_swaps (ctxt);
}
+#ifdef RS6000_GLIBC_ATOMIC_FENV
/* Function declarations for rs6000_atomic_assign_expand_fenv. */
static tree atomic_hold_decl, atomic_clear_decl, atomic_update_decl;
+#endif
/* Implement TARGET_ATOMIC_ASSIGN_EXPAND_FENV hook. */