aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/adaint.c
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-08-20 09:49:51 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-08-20 09:49:51 +0000
commit9740c2446478d5d1e85015f3d40402b8ca1b061a (patch)
treecacf682c71c78586d181e9209a1988913459fa0d /gcc/ada/adaint.c
parente0ea5d16a80b1216387ba00c27ee2ea0e808ac42 (diff)
downloadgcc-9740c2446478d5d1e85015f3d40402b8ca1b061a.zip
gcc-9740c2446478d5d1e85015f3d40402b8ca1b061a.tar.gz
gcc-9740c2446478d5d1e85015f3d40402b8ca1b061a.tar.bz2
[Ada] Suppress Initialize_Scalars for Persistent_BSS
If a variable has pragma Persistent_BSS, the compiler now automatically suppresses implicit initializations caused by Initialize_Scalars and Normalize_Scalars. Variables with Persistent_BSS cannot be initialized, and previously a pragma Suppress_Initialization was required before the pragma Persistent_BSS. 2019-08-20 Bob Duff <duff@adacore.com> gcc/ada/ * sem_prag.adb (Persistent_BSS): If an initialization is present because of Initialize_Scalars or Normalize_Scalars, generate an implicit pragma Suppress_Initialization to remove that, because initialization is not allowed for these variables. Other initializations remain illegal. From-SVN: r274732
Diffstat (limited to 'gcc/ada/adaint.c')
0 files changed, 0 insertions, 0 deletions