[committed][testsuite] Fix make check CC="gcc -m32"
Tom de Vries
tdevries@suse.de
Wed Feb 3 10:12:44 GMT 2021
Hi,
When running:
...
$ make check CC="gcc -m32"
...
we run into:
...
gcc -m32 py-section-script.s -o py-section-script -g
py-section-script.s: Assembler messages:
py-section-script.s:53: Error: bad register name `%rbp'
...
make[1]: *** [Makefile:50: py-section-script] Error 1
...
Fix this by adding "|| touch $@" in the Makefile rule for this test-case (and
a few others), which makes the test unsupported.
Committed to trunk.
Thanks,
- Tom
[testsuite] Fix make check CC="gcc -m32"
2021-02-03 Tom de Vries <tdevries@suse.de>
* Makefile (dw2-skip-prologue, py-section-script)
(implptr-64bit-d2o4a8r8t0): Add "|| touch $@".
---
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 340569a..3fa3a27 100644
--- a/Makefile
+++ b/Makefile
@@ -44,10 +44,10 @@ hello-gnu-pubnames:
dw2-skip-prologue:
$(CC) $(TEST_SRC)/dw2-skip-prologue.S $(TEST_SRC)/dw2-skip-prologue.c \
- -DINLINED -DPTRBITS=64 -o $@
+ -DINLINED -DPTRBITS=64 -o $@ || touch $@
py-section-script:
- $(CC) $(TEST_SRC)/py-section-script.s -o $@ -g
+ $(CC) $(TEST_SRC)/py-section-script.s -o $@ -g || touch $@
DWZ_TEST_SOURCES := $(patsubst %.o,%-for-test.c,$(OBJECTS))
@@ -74,14 +74,14 @@ start-gold:
implptr-64bit-d2o4a8r8t0:
$(CC) $(TEST_SRC)/implptr-64bit-d2o4a8r8t0.S $(TEST_SRC)/main.c \
- -o $@ -g
+ -o $@ -g || touch $@
hello-gold-gdb-index:
$(CC) $(TEST_SRC)/hello.c -g -fuse-ld=gold -Wl,--gdb-index -o $@ \
|| touch $@
varval:
- $(CC) $(TEST_SRC)/varval.c $(TEST_SRC)/varval.S -g -o $@
+ $(CC) $(TEST_SRC)/varval.c $(TEST_SRC)/varval.S -g -o $@ || touch $@
POINTER_SIZE:=$(shell $(CC) $(TEST_SRC)/pointer-size.c -o pointer-size; \
./pointer-size; \
More information about the Dwz
mailing list