gcc.c (process_command): Move lang_specific_driver before setting cc_libexec_prefix.
authorAndrew Haley <aph@redhat.com>
Thu, 21 Jan 2010 15:29:30 +0000 (15:29 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Thu, 21 Jan 2010 15:29:30 +0000 (15:29 +0000)
2010-01-21  Andrew Haley  <aph@redhat.com>

        * gcc.c (process_command): Move lang_specific_driver before
        setting cc_libexec_prefix.

From-SVN: r156154

gcc/ChangeLog
gcc/gcc.c

index 207d68088d3965e6d0d560219fcb96c7aca37e7f..349e1511f0b5a53844f51a6525bb3a5053a1621c 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-21  Andrew Haley  <aph@redhat.com>
+
+        * gcc.c (process_command): Move lang_specific_driver before
+        setting cc_libexec_prefix.
+
 2010-01-21  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/19988
index 8efb5704b4afce4ea991e0ccc6ed549accd3ea84..2e219d614e9c9f104ab4d1cfbd209ae7e2d21738 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3606,12 +3606,6 @@ process_command (int argc, const char **argv)
                     CONST_CAST2 (const char *const **, const char ***,
                                  &argv));
 
-  /* Do language-specific adjustment/addition of flags.  */
-  lang_specific_driver (&argc,
-                       CONST_CAST2 (const char *const **, const char ***,
-                                    &argv),
-                       &added_libraries);
-
   /* Handle any -no-canonical-prefixes flag early, to assign the function
      that builds relative prefixes.  This function creates default search
      paths that are needed later in normal option handling.  */
@@ -3667,6 +3661,12 @@ process_command (int argc, const char **argv)
      is relocated. The toolchain was either relocated using GCC_EXEC_PREFIX
      or an automatically created GCC_EXEC_PREFIX from argv[0].  */
 
+  /* Do language-specific adjustment/addition of flags.  */
+  lang_specific_driver (&argc,
+                       CONST_CAST2 (const char *const **, const char ***,
+                                    &argv),
+                       &added_libraries);
+
   if (gcc_exec_prefix)
     {
       int len = strlen (gcc_exec_prefix);