]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[nvptx] Improve "offload compiler not found" message in mkoffload
authorTom de Vries <tom@codesourcery.com>
Tue, 1 May 2018 19:52:57 +0000 (19:52 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 1 May 2018 19:52:57 +0000 (19:52 +0000)
2018-05-01  Tom de Vries  <tom@codesourcery.com>

PR lto/85451
* config/nvptx/mkoffload.c (main): Suggest using -B in "offload compiler
not found" error message.

From-SVN: r259809

gcc/ChangeLog
gcc/config/nvptx/mkoffload.c

index 5d319c8d588dbb715ead96506ec88cb9cb8e2c78..b69f42b5bee492d1bca411f641a99bee2ee87b1d 100644 (file)
@@ -1,3 +1,9 @@
+2018-05-01  Tom de Vries  <tom@codesourcery.com>
+
+       PR lto/85451
+       * config/nvptx/mkoffload.c (main): Suggest using -B in "offload compiler
+       not found" error message.
+
 2018-05-01  Tom de Vries  <tom@codesourcery.com>
 
        PR other/83786
index c0093909448aebf571d067272402170457911557..c002d122102906371f54d9dadd3115f8a1963be3 100644 (file)
@@ -454,7 +454,8 @@ main (int argc, char **argv)
 
   if (!found)
     fatal_error (input_location,
-                "offload compiler %s not found", GCC_INSTALL_NAME);
+                "offload compiler %s not found (consider using '-B')",
+                GCC_INSTALL_NAME);
 
   /* We may be called with all the arguments stored in some file and
      passed with @file.  Expand them into argv before processing.  */