This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r273210 - in /trunk/gcc: ada/ChangeLog ada/exp_...
- From: pmderodat at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 08 Jul 2019 08:13:48 -0000
- Subject: r273210 - in /trunk/gcc: ada/ChangeLog ada/exp_...
Author: pmderodat
Date: Mon Jul 8 08:13:48 2019
New Revision: 273210
URL: https://gcc.gnu.org/viewcvs?rev=273210&root=gcc&view=rev
Log:
[Ada] Crash on timed entry call with a delay given by a type conversion
This patch fixes a compiler crash in the compiler on a timed entry call
whose delay expression is a type conversion, when FLoat_Overflow checks
are enabled.
2019-07-08 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not insert twice
the assignment statement that computes the delay value, to
prevent improper tree sharing when the value is a type
conversion and Float_Overflow checks are enabled.
gcc/testsuite/
* gnat.dg/entry1.adb, gnat.dg/entry1.ads: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/entry1.adb
trunk/gcc/testsuite/gnat.dg/entry1.ads
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/exp_ch9.adb
trunk/gcc/testsuite/ChangeLog