From 8ec60bacf01692d9f8be9cbcd229a8dc08d6fb19 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 1 May 2018 19:52:57 +0000 Subject: [PATCH] [nvptx] Improve "offload compiler not found" message in mkoffload 2018-05-01 Tom de Vries PR lto/85451 * config/nvptx/mkoffload.c (main): Suggest using -B in "offload compiler not found" error message. From-SVN: r259809 --- gcc/ChangeLog | 6 ++++++ gcc/config/nvptx/mkoffload.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d319c8d588..b69f42b5bee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-05-01 Tom de Vries + + PR lto/85451 + * config/nvptx/mkoffload.c (main): Suggest using -B in "offload compiler + not found" error message. + 2018-05-01 Tom de Vries PR other/83786 diff --git a/gcc/config/nvptx/mkoffload.c b/gcc/config/nvptx/mkoffload.c index c0093909448..c002d122102 100644 --- a/gcc/config/nvptx/mkoffload.c +++ b/gcc/config/nvptx/mkoffload.c @@ -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. */ -- 2.30.2