aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/pcre2-10.32
diff options
context:
space:
mode:
authorCyril SIX <cyril.six@kalray.eu>2019-11-22 17:19:18 +0100
committerCyril SIX <cyril.six@kalray.eu>2019-11-22 17:19:18 +0100
commitafcda39ab5d9aaf9dcce0d7ea9fc50acc9d318ed (patch)
tree7c3b5c2fe4ecc745e12f83670a86dc8e1ddfa822 /test/monniaux/pcre2-10.32
parent2d9ef79ffd1903a444bb33dfdd91bf4d2542c12e (diff)
downloadcompcert-kvx-afcda39ab5d9aaf9dcce0d7ea9fc50acc9d318ed.tar.gz
compcert-kvx-afcda39ab5d9aaf9dcce0d7ea9fc50acc9d318ed.zip
Fixing pcre2 (but it is bugged in GCC?)
Diffstat (limited to 'test/monniaux/pcre2-10.32')
-rw-r--r--test/monniaux/pcre2-10.32/Makefile39
-rw-r--r--test/monniaux/pcre2-10.32/pcre2test.c2
2 files changed, 5 insertions, 36 deletions
diff --git a/test/monniaux/pcre2-10.32/Makefile b/test/monniaux/pcre2-10.32/Makefile
index 98c2c8c2..b6b66c37 100644
--- a/test/monniaux/pcre2-10.32/Makefile
+++ b/test/monniaux/pcre2-10.32/Makefile
@@ -1,4 +1,7 @@
-CFILES = \
+TARGET=pcre2
+ALL_CFLAGS = -DHAVE_CONFIG_H -DPCRE2_CODE_UNIT_WIDTH=8
+EXECUTE_ARGS=testdata/testinput6 > /dev/null 2> __BASE__.out
+ALL_CFILES = \
pcre2_auto_possess.c \
pcre2_chartables.c \
pcre2_compile.c \
@@ -28,39 +31,5 @@ CFILES = \
pcre2posix.c \
pcre2test.c
-HFILES = config.h pcre2_internal.h pcre2posix.h \
-pcre2.h pcre2_intmodedep.h pcre2_ucp.h
-
-K1C_GCC_OFILES=$(CFILES:.c=.gcc.k1c.o)
-K1C_GCC_OFILES_O1=$(CFILES:.c=.gcc.o1.k1c.o)
-K1C_CCOMP_OFILES=$(CFILES:.c=.ccomp.k1c.o)
-K1C_GCC_SFILES=$(CFILES:.c=.gcc.k1c.s)
-K1C_CCOMP_SFILES=$(CFILES:.c=.ccomp.k1c.s)
-HOST_GCC_OFILES=$(CFILES:.c=.gcc.host.o)
-
-all: pcre2test.gcc.o1.k1c.out pcre2test.gcc.k1c.out pcre2test.ccomp.k1c.out $(K1C_GCC_SFILES) $(K1C_CCOMP_SFILES)
-
-ALL_CFLAGS = -DHAVE_CONFIG_H -DPCRE2_CODE_UNIT_WIDTH=8
-EXECUTE_ARGS = testdata/testinput6
-
include ../rules.mk
-
-$(K1C_GCC_SFILES) $(K1C_GCC_OFILES_O1) $(K1C_CCOMP_SFILES) $(HOST_GCC_OFILES): $(HFILES)
-
-pcre2test.gcc.host: $(HOST_GCC_OFILES)
- $(CC) $(CFLAGS) -o $@ $+ ../clock.gcc.host.o
-
-pcre2test.gcc.k1c: $(K1C_GCC_OFILES) ../clock.gcc.k1c.o
- $(K1C_CC) $(K1C_CFLAGS) -o $@ $+
-
-pcre2test.gcc.o1.k1c: $(K1C_GCC_OFILES_O1) ../clock.gcc.k1c.o
- $(K1C_CC) $(K1C_CFLAGS_O1) -o $@ $+
-
-pcre2test.ccomp.k1c: $(K1C_CCOMP_OFILES) ../clock.gcc.k1c.o
- $(K1C_CCOMP) $(K1C_CCOMPFLAGS) -o $@ $+
-
-.PHONY: clean
-
-clean:
- rm -f *.s *.o *.k1c
diff --git a/test/monniaux/pcre2-10.32/pcre2test.c b/test/monniaux/pcre2-10.32/pcre2test.c
index 25a7c4a1..a1fb64cb 100644
--- a/test/monniaux/pcre2-10.32/pcre2test.c
+++ b/test/monniaux/pcre2-10.32/pcre2test.c
@@ -8792,7 +8792,7 @@ FREECONTEXTS;
#endif
clock_stop();
- print_total_clock();
+ printerr_total_clock();
return yield;
}