aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.c
diff options
context:
space:
mode:
authorNicolas Roche <roche@adacore.com>2018-05-25 09:05:34 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-05-25 09:05:34 +0000
commit529e1a3f522ef75e826309b73d41819cb5da52a4 (patch)
tree6e2093c6589c9538bce4d8c167e1b52fdbd080c0 /gcc/tree-loop-distribution.c
parent38806cd3da0ec930cef1c80934a3aa9afc2c90c5 (diff)
downloadgcc-529e1a3f522ef75e826309b73d41819cb5da52a4.zip
gcc-529e1a3f522ef75e826309b73d41819cb5da52a4.tar.gz
gcc-529e1a3f522ef75e826309b73d41819cb5da52a4.tar.bz2
[Ada] Improve performance of conversion from String to Long_Float
Once it is sure that the result will be infinity, stop computation and return the result. This ensure that the function call duration is bounded. Before that change on some cases the computation was taking more than a few seconds. 2018-05-25 Nicolas Roche <roche@adacore.com> gcc/ada/ * libgnat/s-valrea.adb (Scan_Real): Abort computation once it is sure that the result will be either -infinite or +infinite. From-SVN: r260743
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions