[Ada] Fix missing information in exception messages with -gnateE

Eric Botcazou botcazou@adacore.com
Fri May 8 14:46:47 GMT 2020


The information was missing in cases the front-end was able to turn the range 
comparison into a simple comparison.

Tested on x86-64/Linux, applied on the mainline.


2020-05-08  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/trans.c (Raise_Error_to_gnu): Always compute a lower
	bound and an upper bound for use by the -gnateE switch for range and
	comparison operators.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 4296 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200508/0913b7b8/attachment.bin>


More information about the Gcc-patches mailing list