This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ping: RFA: Add %T spec file construct for linker scripts
- From: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 24 Aug 2009 18:14:23 -0400
- Subject: Re: Ping: RFA: Add %T spec file construct for linker scripts
- References: <m3my5pw7tm.fsf@redhat.com>
On Mon, Aug 24, 2009 at 04:27:33PM +0100, Nick Clifton wrote:
> Hi Guys,
>
> Ping ?
>
> http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00777.html
I do wonder if somewhere somebody was depending on this behavior (for example
to make linker scripts on the fly), and a better case would be if find_a_file
does not find the file in the paths, but it exists in the current directory, to
accept the file in the directory without giving an error. On the other hand,
giving an error will show the behavior changed, and the user can add -B. to add
the current directory to the path.
> Cheers
> Nick
>
> gcc/ChangeLog
> 2009-07-14 Nick Clifton <nickc@redhat.com>
>
> * gcc.c (this_is_linker_script): New variable. Like
> this_is_library_file but for the %T constructor.
> (end_going_arg): If this_is_linker_script is set then locate the
> script and insert a --script switch before it
> (do_spec_2): Initialise this_is_linker_script.
> (do_spec_1): Likewise. Handle %T construct.
> (eval_spec_function): Preserve this_is_linker_script.
> * doc/invoke.texi: Document %T construct in spec files.
> * config/m32c/m32c.h (LIB_SPEC): Use it.
>
--
Michael Meissner, IBM
4 Technology Place Drive, MS 2203A, Westford, MA, 01886, USA
meissner@linux.vnet.ibm.com