OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(rs6000_cpu_cpp_builtins): Define __NO_FPRS__ when 'f' class registers will
[pf3gnuchains/gcc-fork.git]
/
gcc
/
config
/
rs6000
/
rs6000-c.c
diff --git
a/gcc/config/rs6000/rs6000-c.c
b/gcc/config/rs6000/rs6000-c.c
index
50c9941
..
41a4d29
100644
(file)
--- 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;
}