aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChung-Lin Tang <cltang@codesourcery.com>2016-05-26 09:12:59 +0000
committerChung-Lin Tang <cltang@codesourcery.com>2016-05-26 09:12:59 +0000
commit6c6a1660e5e69b3d52b4ce5b2775518988515a33 (patch)
tree05c0335ef8f9c37835d314477f1197db31b2ec91
parentfbc4414f0b7a88fbaaa6778cc065b1b1ba38907d (diff)
2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
include/ * gomp-constants.h (GOMP_VERSION): Increment to 1, add comment to describe the need for incrementing this macro whenever the plugin interface is modified. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@236766 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--include/ChangeLog6
-rw-r--r--include/gomp-constants.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 180a73915f4..8b46056ce31 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,9 @@
+2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
+
+ * gomp-constants.h (GOMP_VERSION): Increment to 1, add comment to
+ describe the need for incrementing this macro whenever the plugin
+ interface is modified.
+
2016-04-29 Tom Tromey <tom@tromey.com>
* dwarf2.h (enum dwarf_source_language) <DW_LANG_Rust,
diff --git a/include/gomp-constants.h b/include/gomp-constants.h
index e31c2e00364..9bc9fa5c3a9 100644
--- a/include/gomp-constants.h
+++ b/include/gomp-constants.h
@@ -196,8 +196,10 @@ enum gomp_map_kind
/* Internal to libgomp. */
#define GOMP_TARGET_FLAG_UPDATE (1U << 31)
-/* Versions of libgomp and device-specific plugins. */
-#define GOMP_VERSION 0
+/* Versions of libgomp and device-specific plugins. GOMP_VERSION
+ should be incremented whenever an ABI-incompatible change is introduced
+ to the plugin interface defined in libgomp/libgomp.h. */
+#define GOMP_VERSION 1
#define GOMP_VERSION_NVIDIA_PTX 1
#define GOMP_VERSION_INTEL_MIC 0
#define GOMP_VERSION_HSA 0