This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]