diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-02-11 15:15:47 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-02-11 15:15:47 +0100 |
commit | ce888a99a964f06c912b90dd75a55b79f93c86cd (patch) | |
tree | 976b7a384b4672a31b74146e5f02fb4553031be1 /gcc | |
parent | 9584e638ca38d3748068871cfc3ae3454021ebe2 (diff) | |
download | gcc-ce888a99a964f06c912b90dd75a55b79f93c86cd.zip gcc-ce888a99a964f06c912b90dd75a55b79f93c86cd.tar.gz gcc-ce888a99a964f06c912b90dd75a55b79f93c86cd.tar.bz2 |
nvptx mkoffload: Initialize GCC diagnostic machinery before using it.
gcc/
* config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
"diagnostic-core.h".
(main): Initialize progname, and call diagnostic_initialize.
From-SVN: r220621
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nvptx/mkoffload.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc4a050..482b128 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2015-02-11 Thomas Schwinge <thomas@codesourcery.com> + * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of + "diagnostic-core.h". + (main): Initialize progname, and call diagnostic_initialize. + * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__ instead of __OPENMP_TARGET__. diff --git a/gcc/config/nvptx/mkoffload.c b/gcc/config/nvptx/mkoffload.c index 2287316..739aee8 100644 --- a/gcc/config/nvptx/mkoffload.c +++ b/gcc/config/nvptx/mkoffload.c @@ -33,7 +33,7 @@ #include "intl.h" #include <libgen.h> #include "obstack.h" -#include "diagnostic-core.h" +#include "diagnostic.h" #include "collect-utils.h" #include "gomp-constants.h" @@ -828,6 +828,9 @@ main (int argc, char **argv) FILE *out = stdout; const char *outname = 0; + progname = "mkoffload"; + diagnostic_initialize (global_dc, 0); + char *collect_gcc = getenv ("COLLECT_GCC"); if (collect_gcc == NULL) fatal_error (input_location, "COLLECT_GCC must be set."); |