(rs6000_cpu_cpp_builtins): Define __NO_FPRS__ when 'f' class registers will
authorNick Clifton <nickc@redhat.com>
Tue, 24 May 2005 09:09:07 +0000 (09:09 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 24 May 2005 09:09:07 +0000 (09:09 +0000)
not be available.

From-SVN: r100097

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

index 7202609ab5c2500feaaa72cee3fc26f9b73e744d..7e821ab869569b77fa9534406ca76361dc15c54e 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-24  Nick Clifton  <nickc@redhat.com>
+
+       * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
+       __NO_FPRS__ when 'f' class registers will not be available. 
+
 2005-05-24  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
 
        * config/m32r/m32r.c (m32r_expand_block_move):  Return 0 if
index 50c994104ee1d17e7be3ddc55a211b65675c1c15..41a4d296452ca929014f0e4c0f2afeae74945f75 100644 (file)
@@ -140,6 +140,10 @@ rs6000_cpu_cpp_builtins (cpp_reader *pfile)
       break;
     }
 
+  /* Let the compiled code know if 'f' class registers will not be available.  */
+  if (TARGET_SOFT_FLOAT || !TARGET_FPRS)
+    builtin_define ("__NO_FPRS__");
+
   targetm.resolve_overloaded_builtin = altivec_resolve_overloaded_builtin;
 }