[patch,google] Auto-detect suitable default behaviour for prefix canonicalization

Simon Baldwin simonb@google.com
Wed Feb 9 10:44:00 GMT 2011


On 8 February 2011 19:09, Joseph S. Myers <joseph@codesourcery.com> wrote:
>
> On Mon, 7 Feb 2011, Simon Baldwin wrote:
>
> > +      char *search_prefix = make_relative_prefix (decoded_options[0].arg,
> > +                                               standard_bindir_prefix,
> > +                                               standard_exec_prefix);
> > +      if (search_prefix)
> > +     {
> > +       char *search = concat (search_prefix, spec_machine, NULL);
> > +       if (access (search, R_OK) == 0)
> > +         get_relative_prefix = make_relative_prefix;
>
> Are you sure this will be present in a native installation?  As I
> understand it you're looking for $exec_prefix/$target_noncanonical, and I
> don't see that in my native installs.

Thanks for the note.

Do you have any suggestions offhand for specific ways to handle this
case?  I wanted to use find_a_file here to better match what the rest
of the driver does, but find_a_file relies on global variables that
have not yet been set.

--S

--
Google UK Limited | Registered Office: Belgrave House, 76 Buckingham
Palace Road, London SW1W 9TQ | Registered in England Number: 3977902



More information about the Gcc-patches mailing list