Help the offload gcc driver find the right assembler
authorBernd Schmidt <bernds@codesourcery.com>
Fri, 2 Oct 2015 21:24:50 +0000 (21:24 +0000)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 2 Oct 2015 21:24:50 +0000 (23:24 +0200)
gcc/
* gcc.c (process_command): Use spec_machine rather than
spec_host_machine to build tooldir_prefix2.

From-SVN: r228429

gcc/ChangeLog
gcc/gcc.c

index d1235bd6718b47e33579ce758b8335c77f4331c2..7fe0196c6218bbda385165cd3dcb5239a4568120 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
+
+       * gcc.c (process_command): Use spec_machine rather than
+       spec_host_machine to build tooldir_prefix2.
+
 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
            Bernd Schmidt  <bernds@codesourcery.com>
 
index db90796d0488978ac89288e145fa2dfd587f4bfa..7f5a36e69e551f58cbcba551fd746de797d7b096 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4472,7 +4472,7 @@ process_command (unsigned int decoded_options_count,
     }
 
   gcc_assert (!IS_ABSOLUTE_PATH (tooldir_base_prefix));
-  tooldir_prefix2 = concat (tooldir_base_prefix, spec_host_machine,
+  tooldir_prefix2 = concat (tooldir_base_prefix, spec_machine,
                            dir_separator_str, NULL);
 
   /* Look for tools relative to the location from which the driver is