diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-12-30 16:37:05 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-12-30 16:37:05 +0000 |
commit | 51e8bc524d570439f868ec0bdbf718cb53ca7669 (patch) | |
tree | 5211b1971bdc1df4bc231dfef90cd15e3758a7e3 /backend/ValueAnalysis.v | |
parent | 98089fdf4880b46a57aafa96ea00578e396bb58b (diff) | |
download | compcert-51e8bc524d570439f868ec0bdbf718cb53ca7669.tar.gz compcert-51e8bc524d570439f868ec0bdbf718cb53ca7669.zip |
Ctypes.sizeof ty = 0 for empty types ty (zero-sized array, empty struct/union).
__builtin_memcpy_aligned now supports the case sz = 0.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2392 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/ValueAnalysis.v')
-rw-r--r-- | backend/ValueAnalysis.v | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/backend/ValueAnalysis.v b/backend/ValueAnalysis.v index 396d8d4b..0709f5d7 100644 --- a/backend/ValueAnalysis.v +++ b/backend/ValueAnalysis.v @@ -1271,9 +1271,6 @@ Proof. eapply Mem.loadbytes_length; eauto. intros. eapply loadbytes_sound; eauto. apply match_aptr_of_aval; auto. eapply romatch_storebytes; eauto. - exploit Mem.loadbytes_length; eauto. - intros. exploit (nat_of_Z_eq sz). omega. rewrite <- H1; intros. - destruct bytes. simpl in H2. omegaContradiction. congruence. eapply sound_stack_storebytes; eauto. + (* annot *) intros (A & B); subst. |