diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-06-06 19:27:56 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-06-06 19:27:56 +0100 |
commit | 30ce9dfcc665b6088e5898cfa766b57556ebb90e (patch) | |
tree | d9cdbb93dea407083ea8eb48e2036358717e2972 /libcpp | |
parent | 366d45c8d4911dc7874d2e64cf2583c0133b8dd5 (diff) | |
download | gcc-30ce9dfcc665b6088e5898cfa766b57556ebb90e.zip gcc-30ce9dfcc665b6088e5898cfa766b57556ebb90e.tar.gz gcc-30ce9dfcc665b6088e5898cfa766b57556ebb90e.tar.bz2 |
modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
This patch simplifies the real type build functions by using
the default float_type_node, double_type_node rather than create
new nodes. It also uses the default GCC long_double_type_node
or float128_type_nodes for longreal.
gcc/m2/ChangeLog:
* gm2-gcc/m2type.cc (build_m2_short_real_node): Rewrite
to use the default float_type_node.
(build_m2_real_node): Rewrite to use the default
double_type_node.
(build_m2_long_real_node): Rewrite to use the default
long_double_type_node or float128_type_node.
Co-Authored-By: Kewen.Lin <linkw@linux.ibm.com>
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions