]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Set Etype on rewriteen Max_Queue_Length expressions
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 May 2018 10:46:17 +0000 (10:46 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 May 2018 10:46:17 +0000 (10:46 +0000)
commit27c164bcc90fd2e50b42ff06520538627bb828f6
tree5849e0224885534be42afc8a5370b15b55a7909d
parentbbfc6c913ed1a779c35915c05604de835e9bed32
[Ada] Set Etype on rewriteen Max_Queue_Length expressions

Rewriting of Max_Queue_Length expression into N_Integer_Literal should probably
be done in expansion and not in analysis, but anyway it should not strip the
expression from its Etype because backends (e.g. GNATprove) expect that Etype
to be present.

No frontend test is provided, because GNAT doesn't care about the missing
Etype decoration. This patch allows to simplify AST processing in GNATprove.

2018-05-31  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* sem_prag.adb (Analyze_Pragma): Set Etype on the rewritten
Max_Queue_Length expression.

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