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: [patch,google] Auto-detect suitable default behaviour for prefix canonicalization


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.

In general the new option seems safer than the autodetection; certainly I 
don't think the autodetection is safe for 4.6 at this stage.  So it may be 
useful to split this into one patch for the new option, and then a 
separate follow-up patch to autodetect things.

-- 
Joseph S. Myers
joseph@codesourcery.com


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