From 8d7c806e16b98781a3762b5680b4dc64764da1b8 Mon Sep 17 00:00:00 2001 From: xleroy Date: Sat, 28 Dec 2013 08:47:43 +0000 Subject: Simpler, more robust emulation of calls to variadic functions: - C function types and Cminor signatures annotated by calling conventions. esp. vararg / not vararg - Cshmgen: generate correct code for function call where there are more arguments than listed in the function prototype. This is still undefined behavior according to the formal semantics, but correct code is generated. - C2C, */PrintAsm.ml: remove "printf$iif" hack. - powerpc/, checklink/: don't generate stubs for variadic functions. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2386 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- arm/PrintAsm.ml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'arm') diff --git a/arm/PrintAsm.ml b/arm/PrintAsm.ml index c0e2687..7007467 100644 --- a/arm/PrintAsm.ml +++ b/arm/PrintAsm.ml @@ -39,12 +39,8 @@ let label_for_label lbl = (* Basic printing functions *) -let strip_variadic_suffix name = - try String.sub name 0 (String.index name '$') - with Not_found -> name - let print_symb oc symb = - fprintf oc "%s" (strip_variadic_suffix (extern_atom symb)) + fprintf oc "%s" (extern_atom symb) let print_label oc lbl = fprintf oc ".L%d" (label_for_label lbl) -- cgit v1.2.3