aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorEtienne Servais <servais@adacore.com>2022-01-18 15:45:40 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-10 08:19:22 +0000
commit3ad8cac47099983e9b24103e8327bc2518044877 (patch)
tree9ad184524bbb781646cfd9e2f5f05d6e98f8daaa /gcc/fold-const.cc
parentd979a676fde85a362cb8d7b142300a494370f3e9 (diff)
downloadgcc-3ad8cac47099983e9b24103e8327bc2518044877.zip
gcc-3ad8cac47099983e9b24103e8327bc2518044877.tar.gz
gcc-3ad8cac47099983e9b24103e8327bc2518044877.tar.bz2
[Ada] Reject numeric literals with too big exponents
While the compiler can compute numeric literal with arbitrary large exponents, this may take ages and is most likely a typo. Better emit an error when we certainly expect it to take long. The chosen threshold takes about 100s to compute. gcc/ada/ * scng.adb (Nlit): Error on big UI_Scale.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions