OSDN Git Service

2008-08-01 Ed Schonberg <schonberg@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Aug 2008 09:02:44 +0000 (09:02 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Aug 2008 09:02:44 +0000 (09:02 +0000)
commit7d86aa98343399b59afd325c6224b76b63d52c1c
treed764922d7874c29d0afee9da316ce2c0ab88b390
parentbff9d49b8620914119bb0dde6f599552685db017
2008-08-01  Ed Schonberg  <schonberg@adacore.com>

* checks.adb (Apply_Float_Conversion_Check): If the expression to be
converted is a real literal and the target type has static bounds,
perform the conversion exactly to prevent floating-point anomalies on
some targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138486 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/checks.adb