summaryrefslogtreecommitdiffstats
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-20 18:28:27 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-20 18:28:27 +0000
commit5b247e9f984e94de801f986733f9b6afc6acc715 (patch)
tree93e6e2df27043a189891932a5e31bb953211185f /gcc/optabs.c
parent9aab6de79e349b8f48b998ef9fdead9ad4f12f42 (diff)
downloadppe42-gcc-5b247e9f984e94de801f986733f9b6afc6acc715.tar.gz
ppe42-gcc-5b247e9f984e94de801f986733f9b6afc6acc715.zip
* c-common.c (registered_builtin_types): New static.
(c_common_type_for_mode): Consult registered_builtin_types. (c_register_builtin_type): Add type to registered_builtin_types. * optabs.c (init_floating_libfuncs): Initialize libfuncs for all MODE_FLOAT modes, not just the ones corresponding to float_type_node, double_type_node, and long_double_type_node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72711 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 18a6b93ad76..a56c89fc516 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -5019,18 +5019,7 @@ init_integral_libfuncs (optab optable, const char *opname, int suffix)
static void
init_floating_libfuncs (optab optable, const char *opname, int suffix)
{
- enum machine_mode fmode, dmode, lmode;
-
- fmode = float_type_node ? TYPE_MODE (float_type_node) : VOIDmode;
- dmode = double_type_node ? TYPE_MODE (double_type_node) : VOIDmode;
- lmode = long_double_type_node ? TYPE_MODE (long_double_type_node) : VOIDmode;
-
- if (fmode != VOIDmode)
- init_libfuncs (optable, fmode, fmode, opname, suffix);
- if (dmode != fmode && dmode != VOIDmode)
- init_libfuncs (optable, dmode, dmode, opname, suffix);
- if (lmode != dmode && lmode != VOIDmode)
- init_libfuncs (optable, lmode, lmode, opname, suffix);
+ init_libfuncs (optable, MIN_MODE_FLOAT, MAX_MODE_FLOAT, opname, suffix);
}
/* Initialize the libfunc fields of an entire group of entries of an
OpenPOWER on IntegriCloud