From 04d0d602ef7245fd566debd91bcb148acd9ed067 Mon Sep 17 00:00:00 2001 From: xleroy Date: Mon, 28 Jul 2014 12:13:15 +0000 Subject: PowerPC port: refactored the expansion of built-in functions and pseudo-instructions so that it does not need to be re-done in cchecklink. cchecklink: updated accordingly. testsuite: compile with -sdump and run cchecklink if supported. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2553 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- driver/Driver.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'driver') diff --git a/driver/Driver.ml b/driver/Driver.ml index 556a476..09451eb 100644 --- a/driver/Driver.ml +++ b/driver/Driver.ml @@ -152,7 +152,8 @@ let compile_c_ast sourcename csyntax ofile = (* Convert to Asm *) let asm = match Compiler.transf_c_program csyntax with - | Errors.OK x -> x + | Errors.OK asm -> + Asmexpand.expand_program (Unusedglob.transf_program asm) | Errors.Error msg -> print_error stderr msg; exit 2 in @@ -161,7 +162,7 @@ let compile_c_ast sourcename csyntax ofile = dump_asm asm (output_filename sourcename ".c" ".sdump"); (* Print Asm in text form *) let oc = open_out ofile in - PrintAsm.print_program oc (Unusedglob.transf_program asm); + PrintAsm.print_program oc asm; close_out oc (* From C source to asm *) -- cgit v1.2.3