summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2010-01-21 15:29:30 +0000
committerAndrew Haley <aph@gcc.gnu.org>2010-01-21 15:29:30 +0000
commita288b14325f9d96277e7b4c5ec4bf566490fede3 (patch)
treec65fa9721e870c88bbf9973172c136d22a5ccc4f /gcc/gcc.c
parent4e62a0175be3a34d66a8b395589897f0d2f53f46 (diff)
downloadgcc-a288b14325f9d96277e7b4c5ec4bf566490fede3.tar.gz
gcc.c (process_command): Move lang_specific_driver before setting cc_libexec_prefix.
2010-01-21 Andrew Haley <aph@redhat.com> * gcc.c (process_command): Move lang_specific_driver before setting cc_libexec_prefix. From-SVN: r156154
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 8efb5704b4a..2e219d614e9 100644
--- 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);