projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24dde33
)
ada: Minor tweak in assertion
author
Eric Botcazou
<ebotcazou@adacore.com>
Thu, 17 Nov 2022 12:31:33 +0000
(13:31 +0100)
committer
Marc Poulhiès
<poulhies@adacore.com>
Mon, 21 Nov 2022 10:10:34 +0000
(11:10 +0100)
For an array subtype, being definite is the same as being constrained.
gcc/ada/
* sem_util.adb (Needs_Secondary_Stack): Test Is_Constrained
directly instead of Is_Definite_Subtype for an array subtype.
gcc/ada/sem_util.adb
patch
|
blob
|
history
diff --git
a/gcc/ada/sem_util.adb
b/gcc/ada/sem_util.adb
index
67baf7a
..
f331b4b
100644
(file)
--- a/
gcc/ada/sem_util.adb
+++ b/
gcc/ada/sem_util.adb
@@
-23634,7
+23634,7
@@
package body Sem_Util is
-- Unconstrained array type
else
- pragma Assert (Is_Array_Type (Typ) and
not Is_Definite_Subtype
(Typ));
+ pragma Assert (Is_Array_Type (Typ) and
then not Is_Constrained
(Typ));
return True;
end if;
end Needs_Secondary_Stack;