aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorJon Grimm <jgrimm2@us.ibm.com>2005-12-18 21:40:47 +0000
committerBen Elliston <bje@gcc.gnu.org>2005-12-19 08:40:47 +1100
commit15ed7b52cb0be60cd8f845648a265b2cffe4f963 (patch)
tree7e005c5de55a867524e5bf6183ab854c96880e3c /gcc/stor-layout.c
parent5a575f77fde8efa894e6eefa20ca7e96881fe0e1 (diff)
downloadgcc-15ed7b52cb0be60cd8f845648a265b2cffe4f963.zip
gcc-15ed7b52cb0be60cd8f845648a265b2cffe4f963.tar.gz
gcc-15ed7b52cb0be60cd8f845648a265b2cffe4f963.tar.bz2
optabs.c (init_floating_libfuncs): Handle decimal float modes.
* optabs.c (init_floating_libfuncs): Handle decimal float modes. (init_optabs): Handle libfuncs for decimal float. * genopinit.c (gen_insn): Handle MODE_DECIMAL_FLOAT. * stor-layout.c (int_mode_for_mode): Likewise. * simplify-rtx.c (simplify_immed_subreg): Likewise. (simplify_unary_operation_1): Skip optimisations for decimal float modes. * varasm.c (output_constant_pool_2): Handle MODE_DECIMAL_FLOAT. * emit-rtl.c (gen_const_vector): Add assertion check. (init_emit_once): Populate const_tiny_rtx with constants in each decimal float mode. * expmed.c (extract_high_half, expand_mult_highpart_optab, expand_mult_highpart): Assert that mode is not a scalar float mode. * expr.c (convert_move): Handle conversion between decimal and binary floats of the same size. * convert.c (convert_to_real): Consider decimal float types when folding. * dwarf2out.c (base_type_die): Use DW_ATE_decimal_float to describe decimal floating point types. Co-Authored-By: Ben Elliston <bje@au.ibm.com> Co-Authored-By: Janis Johnson <janis187@us.ibm.com> From-SVN: r108762
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index b4e9ad1..7db3567 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -232,6 +232,7 @@ int_mode_for_mode (enum machine_mode mode)
case MODE_COMPLEX_INT:
case MODE_COMPLEX_FLOAT:
case MODE_FLOAT:
+ case MODE_DECIMAL_FLOAT:
case MODE_VECTOR_INT:
case MODE_VECTOR_FLOAT:
mode = mode_for_size (GET_MODE_BITSIZE (mode), MODE_INT, 0);