aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-c.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2011-12-14 01:36:11 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-12-14 01:36:11 +0000
commitc990877a412109c1e7eac6506239a27ab309051f (patch)
tree017c5531c568d8f5cbcec96d54dfb41febb26294 /gcc/go/go-c.h
parent6fdc547369f2ae57120d8fa1eb91cbff24374a21 (diff)
downloadgcc-c990877a412109c1e7eac6506239a27ab309051f.zip
gcc-c990877a412109c1e7eac6506239a27ab309051f.tar.gz
gcc-c990877a412109c1e7eac6506239a27ab309051f.tar.bz2
compiler: Move import of Go export data to gcc side of interface.
* go-backend.c: #include "simple-object.h" and "intl.h". (GO_EXPORT_SEGMENT_NAME): Define if not defined. (GO_EXPORT_SECTION_NAME): Likewise. (go_write_export_data): Use GO_EXPORT_SECTION_NAME. (go_read_export_data): New function. * go-c.h (go_read_export_data): Declare. From-SVN: r182321
Diffstat (limited to 'gcc/go/go-c.h')
-rw-r--r--gcc/go/go-c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/go/go-c.h b/gcc/go/go-c.h
index f5ecbeb..5e65dea 100644
--- a/gcc/go/go-c.h
+++ b/gcc/go/go-c.h
@@ -69,6 +69,8 @@ extern void go_imported_unsafe (void);
extern void go_write_export_data (const char *, unsigned int);
+extern const char *go_read_export_data (int, off_t, char **, size_t *, int *);
+
#if defined(__cplusplus) && !defined(ENABLE_BUILD_WITH_CXX)
} /* End extern "C". */
#endif