This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [testsuite] Improve LTO testing with -r
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jie Zhang <jie at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Oct 2010 08:56:37 -0700
- Subject: Re: [testsuite] Improve LTO testing with -r
- References: <4CB332FC.5060706@codesourcery.com>
On 10/11/2010 8:53 AM, Jie Zhang wrote:
> Some LTO tests do relocatable linking. Some target boards set a linker
> script which can't be used for relocatable linking. This patch changes
> lto.exp to use the default linker script instead if -r is found in the
> options.
> Is it OK?
I think this patch makes sense. Ideally, there would be more structure
here, in that tests that use "-r" would set some kind of "relocatable"
flag, which would cause DejaGNU to (a) insert -r, and (b) not use the
default linker script. But, I don't see how to make that plumbing
practical, at least not without changing all the *_target_compile functions.
OK if no objections within 48 hours.
Thank you,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713