Hi! On Wed, 28 Jan 2015 18:05:25 +0100, I wrote: > On Sat, 1 Nov 2014 13:11:29 +0100, Bernd Schmidt <[email protected]> > wrote: > > I'm sending this for reference more than anything else - this is the > > patch that adds the target support for offloading to the nvptx port. It > > depends on the other offloading patches Ilya is currently submitting. > > Committed to trunk in r220209: > > commit 9c08fbb35aa95420268c2762151f22a6a9b90e85 > Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> > Date: Wed Jan 28 17:03:44 2015 +0000 > > nvptx mkoffload.
Committed to trunk in r220621:
commit bfeb7c1c69130bb13265c49126e6159dbd9b8a5d
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Feb 11 14:15:47 2015 +0000
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220621
138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/ChangeLog | 4 ++++
gcc/config/nvptx/mkoffload.c | 5 ++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git gcc/ChangeLog gcc/ChangeLog
index bc4a050..482b128 100644
--- gcc/ChangeLog
+++ gcc/ChangeLog
@@ -1,5 +1,9 @@
2015-02-11 Thomas Schwinge <[email protected]>
+ * 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 gcc/config/nvptx/mkoffload.c gcc/config/nvptx/mkoffload.c
index 2287316..739aee8 100644
--- gcc/config/nvptx/mkoffload.c
+++ 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.");
Grüße,
Thomas
pgp87KXUxlCcH.pgp
Description: PGP signature
