aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/bindgen.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2011-08-04 10:50:25 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2011-08-04 10:50:25 +0200
commita4640a3936bb760801ca5d2d44152a3424a8facb (patch)
treed6b414dd132c799d806e53f7814358013c4f0e2f /gcc/ada/bindgen.adb
parent39ade2f90880866196d78b8f523613c60828fd78 (diff)
downloadgcc-a4640a3936bb760801ca5d2d44152a3424a8facb.zip
gcc-a4640a3936bb760801ca5d2d44152a3424a8facb.tar.gz
gcc-a4640a3936bb760801ca5d2d44152a3424a8facb.tar.bz2
[multiple changes]
2011-08-04 Eric Botcazou <ebotcazou@adacore.com> * bindgen.adb: Add comments. 2011-08-04 Yannick Moy <moy@adacore.com> * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a synthesized flag. * sem_prag.adb (Analyze_Pragma): record the pragma Annotate (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram. 2011-08-04 Robert Dewar <dewar@adacore.com> * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb, osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb, sem_ch13.adb, s-pooloc.adb: Minor reformatting. From-SVN: r177334
Diffstat (limited to 'gcc/ada/bindgen.adb')
-rw-r--r--gcc/ada/bindgen.adb6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ada/bindgen.adb b/gcc/ada/bindgen.adb
index 353e91d..a4e7cca 100644
--- a/gcc/ada/bindgen.adb
+++ b/gcc/ada/bindgen.adb
@@ -3097,6 +3097,9 @@ package body Bindgen is
WBI ("");
end if;
+ -- The B.1 (39) implementation advice says that the adainit/adafinal
+ -- routines should be idempotent. Generate a flag to ensure that.
+
WBI (" Is_Elaborated : Boolean := False;");
WBI ("");
@@ -3323,6 +3326,9 @@ package body Bindgen is
WBI ("");
end if;
+ -- The B.1 (39) implementation advice says that the adainit/adafinal
+ -- routines should be idempotent. Generate a flag to ensure that.
+
WBI ("static char is_elaborated = 0;");
WBI ("");