This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gold patch] Add tests for --detect-odr-violations with compressed debug sections


Cary Coutant <ccoutant@google.com> writes:

> I'm not happy with this particular part of the patch to
> testsuite/Makefile.am, though:
>
> +gcctestdir/as: $(TEST_AS)
> +	test -d gcctestdir || mkdir -p gcctestdir
> +	rm -f gcctestdir/as
> +	(cd gcctestdir && $(LN_S) ../../../gas/as-new as)
>
> I need to use the in-tree assembler to compile with
> -Wa,--compress-debug-sections, since I don't believe we can count on
> support for that assembler option in all configurations. What's the
> best way to refer to the assembler in this context? I could have used
> "../$(TEST_AS)", but that assumes that $(top_builddir) is always
> relative -- is it?

I think $(top_builddir) is always relative.  More importantly,
$(abs_top_builddir) is always absolute.  Use that.

> Also, I run the compressed debug tests only if HAVE_ZLIB is set, so in
> testsuite/debug_msg.sh, I test for the presence of
> debug_msg_cdebug.err. Would it be better to just factor those out into
> a separate test script?

I think it's OK.

> 2011-06-23  Cary Coutant  <ccoutant@google.com>
>
> 	* testsuite/Makefile.am: Add in-tree assembler to gcctestdir.
> 	(debug_msg_cdebug.o, odr_violation1_cdebug.o, odr_violation2_cdebug.o)
> 	(debug_msg_cdebug.err): New targets.
> 	* testsuite/Makefile.in: Regenerate.
> 	* testsuite/debug_msg.sh: Check output of link with compressed debug.
> 	Fix checks for link with shared library.

This is OK per above.

Thanks.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]