diff options
author | Nick Clifton <nickc@redhat.com> | 2005-05-24 09:09:07 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2005-05-24 09:09:07 +0000 |
commit | 89f9fe50b1185280cc8cfe89a248f7dac7727fee (patch) | |
tree | 12045d44ee70fe9447535a338f8b144242abc05f /gcc | |
parent | 0be4693a48dfdb376dcb42fad36b286c6f10e178 (diff) | |
download | gcc-89f9fe50b1185280cc8cfe89a248f7dac7727fee.zip gcc-89f9fe50b1185280cc8cfe89a248f7dac7727fee.tar.gz gcc-89f9fe50b1185280cc8cfe89a248f7dac7727fee.tar.bz2 |
(rs6000_cpu_cpp_builtins): Define __NO_FPRS__ when 'f' class registers will
not be available.
From-SVN: r100097
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000-c.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7202609..7e821ab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index 50c9941..41a4d29 100644 --- a/gcc/config/rs6000/rs6000-c.c +++ b/gcc/config/rs6000/rs6000-c.c @@ -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; } |