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 --- test/c/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'test/c') diff --git a/test/c/Makefile b/test/c/Makefile index 1486666..a81a9d5 100644 --- a/test/c/Makefile +++ b/test/c/Makefile @@ -2,6 +2,10 @@ include ../../Makefile.config CCOMP=../../ccomp CCOMPFLAGS=-stdlib ../../runtime -dc -dclight -dasm +ifeq ($(CCHECKLINK),true) +CCHECK=../../cchecklink +CCOMPFLAGS+= -sdump +endif CFLAGS=-O1 -Wall @@ -38,6 +42,12 @@ test: fi; \ done +ccheck: + @for i in $(PROGS); do \ + echo "---- $$i"; \ + $(CCHECK) -exe $$i.compcert $$i.sdump; \ + done + test_gcc: @for i in $(PROGS); do \ if ./$$i.gcc | cmp -s - Results/$$i; \ @@ -69,4 +79,4 @@ cminor_roundtrip: clean: rm -f *.compcert *.gcc - rm -f *.compcert.c *.light.c *.parsed.c *.s *.o *~ + rm -f *.compcert.c *.light.c *.parsed.c *.s *.o *.sdump *~ -- cgit v1.2.3