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: Adjust test for PR ld/22269


> Approved - please apply.

Thanks, done.

> > NB: it's rather confusing that run_ld_link_tests needs this tweak, but
> > neither run_ld_link_exec_tests nor run_cc_link_tests does.
> 
> Is this because they use gcc to create the assembler command line ?

Yes, the 3 procedures can compile C files, but the last 2 pass -c to GCC while 
the first 1 passes -S and then invoke GAS manually.  The rationale for the 
discrepancy is rather unclear to me...

> No.  None of those three functions has any target specific code in them, and
> I would like to keep it that way.

I was rather thinking of making run_ld_link_tests behave like the other 2: if 
you compile a C file, invoked gcc -c , if you assemble a S file, invoke as -c.

-- 
Eric Botcazou


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