summaryrefslogtreecommitdiffstats
path: root/libjava/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r--libjava/Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index d30f5491ce2..4018f32df6b 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -381,6 +381,15 @@ header-check: libgcj.jar $(nat_headers)
done; \
$(CXXCOMPILE) -fsyntax-only htest.cc
+## This rule can be used to see if all the .class files verify
+## correctly.
+class-check: libgcj.jar
+ @ok=0; find . -name '*.class' -print | fgrep -v testsuite | \
+ while read f; do \
+ echo "$(GCJ_WITH_FLAGS) --syntax-only $$f"; \
+ if $(GCJ_WITH_FLAGS) --syntax-only $$f; then \
+ :; else ok=1; fi; \
+ done; exit $$ok
## ################################################################
OpenPOWER on IntegriCloud