rs6000.c (atomic_hold_decl, [...]): Guard declaration with #ifdef.
authorPat Haugen <pthaugen@us.ibm.com>
Tue, 4 Nov 2014 22:34:43 +0000 (22:34 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Tue, 4 Nov 2014 22:34:43 +0000 (22:34 +0000)
* config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
atomic_update_decl): Guard declaration with #ifdef.

From-SVN: r217105

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index ac76f2a3bac521c1c743398a75e373d424d12dca..cf3b8ee1b9b80292ae50600fce4a8b94a6d652a8 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2014-11-04  Marek Polacek  <polacek@redhat.com>
 
        * sanopt.c (sanopt_optimize_walker): Remove unused variables.
index 719878c1f84e00bacb28ce45ff27e9604fa5bf2e..336dd4390754d83ffbb4bfe588acf55d9078a68f 100644 (file)
@@ -34590,8 +34590,10 @@ make_pass_analyze_swaps (gcc::context *ctxt)
   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.  */