aboutsummaryrefslogtreecommitdiffstats
path: root/backend/Allocproof.v
diff options
context:
space:
mode:
authorxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2010-05-23 15:26:33 +0000
committerxleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2010-05-23 15:26:33 +0000
commit3a050b22f37f3c79a10a8ebae3d292fa77e91b76 (patch)
tree16a0d9366f6805cfc9726c0b80dd8da84cb63a3d /backend/Allocproof.v
parent7999c9ee1f09f7d555e3efc39f030564f76a3354 (diff)
downloadcompcert-3a050b22f37f3c79a10a8ebae3d292fa77e91b76.tar.gz
compcert-3a050b22f37f3c79a10a8ebae3d292fa77e91b76.zip
More faithful semantics for volatile reads and writes.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1346 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/Allocproof.v')
-rw-r--r--backend/Allocproof.v11
1 files changed, 10 insertions, 1 deletions
diff --git a/backend/Allocproof.v b/backend/Allocproof.v
index b845323f..c5d6adc3 100644
--- a/backend/Allocproof.v
+++ b/backend/Allocproof.v
@@ -418,6 +418,14 @@ Proof.
exact TRANSF.
Qed.
+Lemma varinfo_preserved:
+ forall b, Genv.find_var_info tge b = Genv.find_var_info ge b.
+Proof.
+ intro. unfold ge, tge.
+ apply Genv.find_var_info_transf_partial with transf_fundef.
+ exact TRANSF.
+Qed.
+
Lemma functions_translated:
forall (v: val) (f: RTL.fundef),
Genv.find_funct ge v = Some f ->
@@ -717,7 +725,8 @@ Proof.
injection H7; intro EQ; inv EQ.
econstructor; split.
eapply exec_function_external; eauto.
- eapply external_call_symbols_preserved; eauto. exact symbols_preserved.
+ eapply external_call_symbols_preserved; eauto.
+ exact symbols_preserved. exact varinfo_preserved.
eapply match_states_return; eauto.
(* return *)