* Gold testsuite make clean
@ 2015-02-09 3:40 Alan Modra
2015-02-09 22:46 ` Cary Coutant
0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2015-02-09 3:40 UTC (permalink / raw)
To: binutils
These were left around in gold/testsuite. Committed.
* testsuite/Makefile.am (MOSTLYCLEANFILES): Add libweak_undef_2.a,
plugin_test_thin.a and defsym_test.
* testsuite/Makefile.in: Regenerate.
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
index be3b278..4e2ce6b 100644
--- a/gold/testsuite/Makefile.am
+++ b/gold/testsuite/Makefile.am
@@ -733,6 +733,7 @@ weak_undef_test_2_SOURCES = weak_undef_test_2.cc
weak_undef_test_2_DEPENDENCIES = gcctestdir/ld libweak_undef_2.a
weak_undef_test_2_LDFLAGS = -Bgcctestdir/ -u weak_undef_2
weak_undef_test_2_LDADD = -L . -lweak_undef_2
+MOSTLYCLEANFILES += libweak_undef_2.a
libweak_undef_2.a: weak_undef_file3.o weak_undef_file4.o
$(TEST_AR) rc $@ $^
weak_undef_file3.o: weak_undef_file3.cc
@@ -1670,7 +1671,7 @@ plugin_test_10.sections: plugin_test_10
check_PROGRAMS += plugin_test_11
check_SCRIPTS += plugin_test_11.sh
check_DATA += plugin_test_11.err
-MOSTLYCLEANFILES += plugin_test_11.err
+MOSTLYCLEANFILES += plugin_test_11.err plugin_test_thin.a
PLUGIN_TEST_11_SYMS = two_file_test_1.o.syms two_file_test_1b.o.syms two_file_test_2.o.syms
plugin_test_11: two_file_test_main.o plugin_test_thin.a gcctestdir/ld plugin_test.so $(PLUGIN_TEST_11_SYMS)
$(CXXLINK) -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv" two_file_test_main.o plugin_test_thin.a 2>plugin_test_11.err
@@ -2279,7 +2280,7 @@ ehdr_start_test_5_LDADD =
# Test that the --defsym option copies the symbol type and visibility.
check_SCRIPTS += defsym_test.sh
check_DATA += defsym_test.syms
-MOSTLYCLEANFILES += defsym_test.syms
+MOSTLYCLEANFILES += defsym_test defsym_test.syms
defsym_test.syms: defsym_test
$(TEST_READELF) -sW $< > $@
defsym_test: defsym_test.o gcctestdir/ld
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Gold testsuite make clean
2015-02-09 3:40 Gold testsuite make clean Alan Modra
@ 2015-02-09 22:46 ` Cary Coutant
0 siblings, 0 replies; 3+ messages in thread
From: Cary Coutant @ 2015-02-09 22:46 UTC (permalink / raw)
To: Binutils
Thanks!
-cary
On Sun, Feb 8, 2015 at 7:40 PM, Alan Modra <amodra@gmail.com> wrote:
> These were left around in gold/testsuite. Committed.
>
> * testsuite/Makefile.am (MOSTLYCLEANFILES): Add libweak_undef_2.a,
> plugin_test_thin.a and defsym_test.
> * testsuite/Makefile.in: Regenerate.
>
> diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
> index be3b278..4e2ce6b 100644
> --- a/gold/testsuite/Makefile.am
> +++ b/gold/testsuite/Makefile.am
> @@ -733,6 +733,7 @@ weak_undef_test_2_SOURCES = weak_undef_test_2.cc
> weak_undef_test_2_DEPENDENCIES = gcctestdir/ld libweak_undef_2.a
> weak_undef_test_2_LDFLAGS = -Bgcctestdir/ -u weak_undef_2
> weak_undef_test_2_LDADD = -L . -lweak_undef_2
> +MOSTLYCLEANFILES += libweak_undef_2.a
> libweak_undef_2.a: weak_undef_file3.o weak_undef_file4.o
> $(TEST_AR) rc $@ $^
> weak_undef_file3.o: weak_undef_file3.cc
> @@ -1670,7 +1671,7 @@ plugin_test_10.sections: plugin_test_10
> check_PROGRAMS += plugin_test_11
> check_SCRIPTS += plugin_test_11.sh
> check_DATA += plugin_test_11.err
> -MOSTLYCLEANFILES += plugin_test_11.err
> +MOSTLYCLEANFILES += plugin_test_11.err plugin_test_thin.a
> PLUGIN_TEST_11_SYMS = two_file_test_1.o.syms two_file_test_1b.o.syms two_file_test_2.o.syms
> plugin_test_11: two_file_test_main.o plugin_test_thin.a gcctestdir/ld plugin_test.so $(PLUGIN_TEST_11_SYMS)
> $(CXXLINK) -Bgcctestdir/ -Wl,--no-demangle,--plugin,"./plugin_test.so",--plugin-opt,"_Z4f13iv" two_file_test_main.o plugin_test_thin.a 2>plugin_test_11.err
> @@ -2279,7 +2280,7 @@ ehdr_start_test_5_LDADD =
> # Test that the --defsym option copies the symbol type and visibility.
> check_SCRIPTS += defsym_test.sh
> check_DATA += defsym_test.syms
> -MOSTLYCLEANFILES += defsym_test.syms
> +MOSTLYCLEANFILES += defsym_test defsym_test.syms
> defsym_test.syms: defsym_test
> $(TEST_READELF) -sW $< > $@
> defsym_test: defsym_test.o gcctestdir/ld
>
> --
> Alan Modra
> Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 3+ messages in thread
* gold testsuite make clean
@ 2013-01-14 12:57 Alan Modra
0 siblings, 0 replies; 3+ messages in thread
From: Alan Modra @ 2013-01-14 12:57 UTC (permalink / raw)
To: binutils
Applied as obvious.
* testsuite/Makefile.am (MOSTLYCLEANFILES): Add various output files.
* testsuite/Makefile.in: Regenerate.
Index: gold/testsuite/Makefile.am
===================================================================
RCS file: /cvs/src/src/gold/testsuite/Makefile.am,v
retrieving revision 1.204
diff -u -p -r1.204 Makefile.am
--- gold/testsuite/Makefile.am 10 Jan 2013 00:18:15 -0000 1.204
+++ gold/testsuite/Makefile.am 14 Jan 2013 06:22:10 -0000
@@ -148,7 +148,7 @@ flagstest_ndebug.o: constructor_test.cc
check_SCRIPTS += incremental_test.sh
check_DATA += incremental_test.stdout
-MOSTLYCLEANFILES += incremental_test
+MOSTLYCLEANFILES += incremental_test incremental_test.cmdline
incremental_test_1.o: incremental_test_1.c
$(COMPILE) -O0 -c -ffunction-sections -g -o $@ $<
incremental_test_2.o: incremental_test_2.c
@@ -269,7 +269,7 @@ text_section_grouping.stdout: text_secti
$(TEST_NM) -n --synthetic text_section_grouping > text_section_grouping.stdout
check_PROGRAMS += icf_virtual_function_folding_test
-MOSTLYCLEANFILES += icf_virtual_function_folding_test
+MOSTLYCLEANFILES += icf_virtual_function_folding_test icf_virtual_function_folding_test.map
icf_virtual_function_folding_test.o: icf_virtual_function_folding_test.cc
$(CXXCOMPILE) -O0 -c -ffunction-sections -fPIE -g -o $@ $<
icf_virtual_function_folding_test: icf_virtual_function_folding_test.o gcctestdir/ld
@@ -1072,6 +1072,7 @@ flagstest_o_ttext_1: flagstest_debug.o g
# PT_PHDR segment at file offset 0. We just make sure that we can
# build it without error.
check_DATA += flagstest_o_ttext_2
+MOSTLYCLEANFILES += flagstest_o_ttext_2
flagstest_o_ttext_2: flagstest_debug.o gcctestdir/ld
$(CXXLINK) -Bgcctestdir/ -o $@ $< -Wl,-Ttext,0x400010 -Wl,-Tdata,0x800010
@@ -1284,6 +1285,7 @@ justsyms_exec_SOURCES = justsyms_exec.c
justsyms_exec_DEPENDENCIES = gcctestdir/ld justsyms_lib
justsyms_exec_LDFLAGS = -Bgcctestdir/ -Wl,-R,justsyms_lib
justsyms_exec_LDADD =
+MOSTLYCLEANFILES += justsyms_lib
justsyms_lib.o: justsyms_lib.c
$(COMPILE) -c -o $@ $<
justsyms_lib: justsyms_lib.o gcctestdir/ld
@@ -1377,6 +1379,7 @@ script_test_8.stdout: script_test_8
check_SCRIPTS += script_test_9.sh
check_DATA += script_test_9.stdout
+MOSTLYCLEANFILES += script_test_9
script_test_9.o: script_test_9.cc
$(CXXCOMPILE) -O0 -c -o $@ $<
script_test_9: gcctestdir/ld $(srcdir)/script_test_9.t script_test_9.o
@@ -1570,6 +1573,7 @@ unused.c:
check_SCRIPTS += plugin_final_layout.sh
check_DATA += plugin_final_layout.stdout plugin_final_layout_readelf.stdout
+MOSTLYCLEANFILES += plugin_final_layout
plugin_final_layout.o: plugin_final_layout.cc
$(CXXCOMPILE) -O0 -c -ffunction-sections -fdata-sections -g -o $@ $<
plugin_final_layout: plugin_final_layout.o plugin_section_order.so gcctestdir/ld
@@ -2001,6 +2005,7 @@ dyn_weak_ref.stdout: dyn_weak_ref_1.so
# Test that --start-lib and --end-lib function correctly.
check_PROGRAMS += start_lib_test
+MOSTLYCLEANFILES += libstart_lib_test.a
start_lib_test: start_lib_test_main.o libstart_lib_test.a start_lib_test_2.o start_lib_test_3.o \
gcctestdir/ld
$(LINK) -Bgcctestdir/ -o $@ start_lib_test_main.o -L. -lstart_lib_test \
@@ -2183,6 +2188,7 @@ if NATIVE_OR_CROSS_LINKER
# Test script section order.
check_SCRIPTS += script_test_10.sh
check_DATA += script_test_10.stdout
+MOSTLYCLEANFILES += script_test_10
script_test_10.o: script_test_10.s
$(TEST_AS) -o $@ $<
script_test_10: $(srcdir)/script_test_10.t script_test_10.o gcctestdir/ld
@@ -2795,6 +2801,7 @@ dwp_test_1b.dwo: dwp_test_1b.o
dwp_test_2.dwo: dwp_test_2.o
$(TEST_OBJCOPY) --extract-dwo $< $@
+MOSTLYCLEANFILES += *.dwo *.dwp
check_SCRIPTS += dwp_test_1.sh
check_DATA += dwp_test_1.stdout
dwp_test_1.stdout: dwp_test_1.dwp
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-09 22:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09 3:40 Gold testsuite make clean Alan Modra
2015-02-09 22:46 ` Cary Coutant
-- strict thread matches above, loose matches on Subject: below --
2013-01-14 12:57 gold " Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).