This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [testsuite] Improve LTO testing with -r


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


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