diff mbox

Implement TARGET_ATOMIC_ASSIGN_EXPAND_FENV for powerpc*-*-linux* soft-float and e500

Message ID 545954AE.6070209@linux.vnet.ibm.com
State New
Headers show

Commit Message

Pat Haugen Nov. 4, 2014, 10:35 p.m. UTC
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.
diff mbox

Patch

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.  */