aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-08-20 17:40:41 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-09-02 10:22:50 +0200
commit571d0450b294af66338c911c5205b4cbf20902ad (patch)
tree2dea2f7979eb4f5615d9512bdcc050dc62a594fd /gcc/cp/parser.cc
parent1c9a6d8203b6cbc8500a28acdd9fbb23546a85dc (diff)
downloadgcc-571d0450b294af66338c911c5205b4cbf20902ad.zip
gcc-571d0450b294af66338c911c5205b4cbf20902ad.tar.gz
gcc-571d0450b294af66338c911c5205b4cbf20902ad.tar.bz2
ada: Diagnose too large size clause on floating-point type
The problem is that the size clause changes the floating-point format used for the type, but it must not when this format is the widest format that is supported in hardware on the target. Instead a padding type must be built and the associated warning given. gcc/ada/ * gcc-interface/decl.cc (gnat_to_gnu_entity): Cap the Esize of a floating-point type to the size of the widest format supported in hardware if it is explicity defined.
Diffstat (limited to 'gcc/cp/parser.cc')
0 files changed, 0 insertions, 0 deletions