public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Allow targets to prefer target roots
@ 2007-03-16 23:23 Mike Stump
  2007-03-27 21:36 ` Mike Stump
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Stump @ 2007-03-16 23:23 UTC (permalink / raw)
  To: gcc-patches

This allows a target to prefer the target system root over /.  This is
useful when the target system /usr/lib should be prefered over
/usr/lib when the installation prefix is /usr.

Ok?

$ cat ~/diffs/gcc-1.diffs
2007-03-16  Mike Stump  <mrs@apple.com>

	* gcc.c (main): Allow targets to prefer the target system root over /.

Doing diffs in gcc.c.~1~:
--- gcc.c.~1~	2007-03-12 19:03:08.000000000 -0700
+++ gcc.c	2007-03-16 14:27:49.000000000 -0700
@@ -2720,6 +2720,7 @@ find_a_file (const struct path_prefix *p
 
 enum path_prefix_priority
 {
+  PREFIX_PRIORITY_FIRST,
   PREFIX_PRIORITY_B_OPT,
   PREFIX_PRIORITY_LAST
 };
@@ -6283,6 +6284,10 @@ main (int argc, char **argv)
         target_sysroot_hdrs_suffix = xstrdup (argbuf[argbuf_index -1]);
     }
 
+#ifndef SYSROOT_PRIORITY
+#define SYSROOT_PRIORITY PREFIX_PRIORITY_LAST
+#endif
+
   /* Look for startfiles in the standard places.  */
   if (*startfile_prefix_spec != 0
       && do_spec_2 (startfile_prefix_spec) == 0
@@ -6291,7 +6296,7 @@ main (int argc, char **argv)
       int ndx;
       for (ndx = 0; ndx < argbuf_index; ndx++)
 	add_sysrooted_prefix (&startfile_prefixes, argbuf[ndx], "BINUTILS",
-			      PREFIX_PRIORITY_LAST, 0, 1);
+			      SYSROOT_PRIORITY, 0, 1);
     }
   /* We should eventually get rid of all these and stick to
      startfile_prefix_spec exclusively.  */
@@ -6299,11 +6304,11 @@ main (int argc, char **argv)
     {
       if (*md_startfile_prefix)
 	add_sysrooted_prefix (&startfile_prefixes, md_startfile_prefix,
-			      "GCC", PREFIX_PRIORITY_LAST, 0, 1);
+			      "GCC", SYSROOT_PRIORITY, 0, 1);
 
       if (*md_startfile_prefix_1)
 	add_sysrooted_prefix (&startfile_prefixes, md_startfile_prefix_1,
-			      "GCC", PREFIX_PRIORITY_LAST, 0, 1);
+			      "GCC", SYSROOT_PRIORITY, 0, 1);
 
       /* If standard_startfile_prefix is relative, base it on
 	 standard_exec_prefix.  This lets us move the installed tree
@@ -6315,7 +6320,7 @@ main (int argc, char **argv)
       if (IS_ABSOLUTE_PATH (standard_startfile_prefix))
 	add_sysrooted_prefix (&startfile_prefixes,
 			      standard_startfile_prefix, "BINUTILS",
-			      PREFIX_PRIORITY_LAST, 0, 1);
+			      SYSROOT_PRIORITY, 0, 1);
       else if (*cross_compile == '0')
 	{
 	  add_prefix (&startfile_prefixes,
@@ -6331,11 +6336,11 @@ main (int argc, char **argv)
       if (*standard_startfile_prefix_1)
  	add_sysrooted_prefix (&startfile_prefixes,
 			      standard_startfile_prefix_1, "BINUTILS",
-			      PREFIX_PRIORITY_LAST, 0, 1);
+			      SYSROOT_PRIORITY, 0, 1);
       if (*standard_startfile_prefix_2)
 	add_sysrooted_prefix (&startfile_prefixes,
 			      standard_startfile_prefix_2, "BINUTILS",
-			      PREFIX_PRIORITY_LAST, 0, 1);
+			      SYSROOT_PRIORITY, 0, 1);
     }
 
   /* Process any user specified specs in the order given on the command
--------------

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Allow targets to prefer target roots
  2007-03-16 23:23 Allow targets to prefer target roots Mike Stump
@ 2007-03-27 21:36 ` Mike Stump
  2007-04-26  3:01   ` Mike Stump
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Stump @ 2007-03-27 21:36 UTC (permalink / raw)
  To: gcc-patches@gcc.gnu.org Patches

On Mar 16, 2007, at 2:48 PM, Mike Stump wrote:
> This allows a target to prefer the target system root over /.  This is
> useful when the target system /usr/lib should be prefered over
> /usr/lib when the installation prefix is /usr.
>
> Ok?

Ping.

http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01150.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Allow targets to prefer target roots
  2007-03-27 21:36 ` Mike Stump
@ 2007-04-26  3:01   ` Mike Stump
  2007-05-01 17:58     ` Mike Stump
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Stump @ 2007-04-26  3:01 UTC (permalink / raw)
  To: gcc-patches List

Ping?

On Mar 27, 2007, at 2:27 PM, Mike Stump wrote:
> On Mar 16, 2007, at 2:48 PM, Mike Stump wrote:
>> This allows a target to prefer the target system root over /.   
>> This is
>> useful when the target system /usr/lib should be prefered over
>> /usr/lib when the installation prefix is /usr.
>>
>> Ok?
>
> Ping.
>
> http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01150.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Allow targets to prefer target roots
  2007-04-26  3:01   ` Mike Stump
@ 2007-05-01 17:58     ` Mike Stump
  2007-05-01 22:34       ` Eric Christopher
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Stump @ 2007-05-01 17:58 UTC (permalink / raw)
  To: gcc-patches List

Ping?

On Apr 25, 2007, at 7:16 PM, Mike Stump wrote:
> Ping?
> On Mar 27, 2007, at 2:27 PM, Mike Stump wrote:
>> On Mar 16, 2007, at 2:48 PM, Mike Stump wrote:
>>> This allows a target to prefer the target system root over /.   
>>> This is
>>> useful when the target system /usr/lib should be prefered over
>>> /usr/lib when the installation prefix is /usr.
>>>
>>> Ok?
>>
>> Ping.
>>
>> http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01150.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Allow targets to prefer target roots
  2007-05-01 17:58     ` Mike Stump
@ 2007-05-01 22:34       ` Eric Christopher
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Christopher @ 2007-05-01 22:34 UTC (permalink / raw)
  To: Mike Stump; +Cc: gcc-patches List


On May 1, 2007, at 10:58 AM, Mike Stump wrote:

> Ping?

While the idea of a sysroot priority (on command line or what have  
you) is a good idea, I'm not sure I understand the example you used in  
the patch mail. Want to give a slightly longer or more detailed example?

-eric

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-01 22:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 23:23 Allow targets to prefer target roots Mike Stump
2007-03-27 21:36 ` Mike Stump
2007-04-26  3:01   ` Mike Stump
2007-05-01 17:58     ` Mike Stump
2007-05-01 22:34       ` Eric Christopher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).