From 51e8bc524d570439f868ec0bdbf718cb53ca7669 Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 30 Dec 2013 16:37:05 +0000 Subject: 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 --- backend/ValueAnalysis.v | 3 --- 1 file changed, 3 deletions(-) (limited to 'backend/ValueAnalysis.v') 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. -- cgit