aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/layout.adb
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2021-01-05 23:54:09 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2021-05-04 05:17:31 -0400
commit0a272ac33f4baa3f616718aa9168dded33cde21b (patch)
tree5140966992e83a3f5e87a246a041b9d6dac6dd8d /gcc/ada/layout.adb
parent43758c2cffeaa2eddd46ead7224a3dda24cab48f (diff)
downloadgcc-0a272ac33f4baa3f616718aa9168dded33cde21b.zip
gcc-0a272ac33f4baa3f616718aa9168dded33cde21b.tar.gz
gcc-0a272ac33f4baa3f616718aa9168dded33cde21b.tar.bz2
[Ada] Reject constants of access-to-variable type as function globals
gcc/ada/ * sem_prag.adb (Analyze_Global_Item): Take subprogram kind into account when accepting or rejecting a constant of an access-to-variable type as a global Output/In_Out; do this check inside an ELSIF branch to avoid unnecessary evaluation of the subsequent condition.
Diffstat (limited to 'gcc/ada/layout.adb')
0 files changed, 0 insertions, 0 deletions