aboutsummaryrefslogtreecommitdiffstats
path: root/backend/Asmgenproof0.v
diff options
context:
space:
mode:
authorBernhard Schommer <bschommer@users.noreply.github.com>2017-09-22 19:50:52 +0200
committerXavier Leroy <xavierleroy@users.noreply.github.com>2017-09-22 19:50:52 +0200
commita36b3b755e25b8c5d61b9e069114858d9b768f04 (patch)
tree3ffd8bcb28a88ae4ff51989aed37b0ad2cb676b2 /backend/Asmgenproof0.v
parent0f210f622a4609811959f4450f770c61f5eb6532 (diff)
downloadcompcert-a36b3b755e25b8c5d61b9e069114858d9b768f04.tar.gz
compcert-a36b3b755e25b8c5d61b9e069114858d9b768f04.zip
Remove coq warnings (#28)
Replace deprecated functions and theorems from the Coq standard library (version 8.6) by their non-deprecated counterparts.
Diffstat (limited to 'backend/Asmgenproof0.v')
-rw-r--r--backend/Asmgenproof0.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/Asmgenproof0.v b/backend/Asmgenproof0.v
index 0250628b..f6f03868 100644
--- a/backend/Asmgenproof0.v
+++ b/backend/Asmgenproof0.v
@@ -103,7 +103,7 @@ Lemma nextinstr_set_preg:
(nextinstr (rs#(preg_of m) <- v))#PC = Val.offset_ptr rs#PC Ptrofs.one.
Proof.
intros. unfold nextinstr. rewrite Pregmap.gss.
- rewrite Pregmap.gso. auto. apply sym_not_eq. apply preg_of_not_PC.
+ rewrite Pregmap.gso. auto. apply not_eq_sym. apply preg_of_not_PC.
Qed.
Lemma undef_regs_other:
@@ -211,7 +211,7 @@ Lemma agree_set_mreg:
agree (Regmap.set r v ms) sp rs'.
Proof.
intros. destruct H. split; auto.
- rewrite H1; auto. apply sym_not_equal. apply preg_of_not_SP.
+ rewrite H1; auto. apply not_eq_sym. apply preg_of_not_SP.
intros. unfold Regmap.set. destruct (RegEq.eq r0 r). congruence.
rewrite H1. auto. apply preg_of_data.
red; intros; elim n. eapply preg_of_injective; eauto.