aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorGaius Mulley <gaiusmod2@gmail.com>2023-10-11 17:44:35 +0100
committerGaius Mulley <gaiusmod2@gmail.com>2023-10-11 17:44:35 +0100
commitacfca27eaf4960069f7a49039f1407b956669ec1 (patch)
tree68fe7ebd09a06f497f15f752fae03c9327d99747 /libgcc
parent5ef248c15ec3490f4b98cda4bc27a667a8cf8206 (diff)
downloadgcc-acfca27eaf4960069f7a49039f1407b956669ec1.zip
gcc-acfca27eaf4960069f7a49039f1407b956669ec1.tar.gz
gcc-acfca27eaf4960069f7a49039f1407b956669ec1.tar.bz2
modula2: Narrow subranges to int or unsigned int if ZTYPE is the base type.
This patch narrows the subrange base type to INTEGER or CARDINAL providing the range is satisfied. It only does this when the subrange base type is the ZTYPE. gcc/m2/ChangeLog: * gm2-compiler/M2GCCDeclare.mod (DeclareSubrange): Check the base type of the subrange against the ZTYPE and call DeclareSubrangeNarrow if necessary. (DeclareSubrangeNarrow): New procedure function. Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions