aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2011-06-21 23:03:09 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2011-06-21 23:03:09 +0000
commitcb9a7db01d214bc16de781a02f503a2965e8ac1e (patch)
tree0f6ec6f42a621b55722dfc4af89a911cad2c7db9
parentccb4f5a707e68bf6793c69baa2af1cc7f0825c89 (diff)
downloadgcc-cb9a7db01d214bc16de781a02f503a2965e8ac1e.zip
gcc-cb9a7db01d214bc16de781a02f503a2965e8ac1e.tar.gz
gcc-cb9a7db01d214bc16de781a02f503a2965e8ac1e.tar.bz2
gogo-tree.cc (Gogo::define_builtin_function_trees): Change BUILT_IN_ADD_AND_FETCH to BUILT_IN_SYNC_ADD_AND_FETCH.
* gogo-tree.cc (Gogo::define_builtin_function_trees): Change BUILT_IN_ADD_AND_FETCH to BUILT_IN_SYNC_ADD_AND_FETCH. From-SVN: r175278
-rw-r--r--gcc/go/ChangeLog5
-rw-r--r--gcc/go/gofrontend/gogo-tree.cc8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog
index 20385d1..76c5be5 100644
--- a/gcc/go/ChangeLog
+++ b/gcc/go/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-21 Andrew MacLeod <amacleod@redhat.com>
+
+ * gogo-tree.cc (Gogo::define_builtin_function_trees): Change
+ BUILT_IN_ADD_AND_FETCH to BUILT_IN_SYNC_ADD_AND_FETCH.
+
2011-06-14 Joseph Myers <joseph@codesourcery.com>
* Make-lang.in (go/go-lang.o, go/go-backend.o): Update
diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc
index 94d1c4d..2b5a24c 100644
--- a/gcc/go/gofrontend/gogo-tree.cc
+++ b/gcc/go/gofrontend/gogo-tree.cc
@@ -91,22 +91,22 @@ Gogo::define_builtin_function_trees()
for ++ and --. */
tree t = go_type_for_size(BITS_PER_UNIT, 1);
tree p = build_pointer_type(build_qualified_type(t, TYPE_QUAL_VOLATILE));
- define_builtin(BUILT_IN_ADD_AND_FETCH_1, "__sync_fetch_and_add_1", NULL,
+ define_builtin(BUILT_IN_SYNC_ADD_AND_FETCH_1, "__sync_fetch_and_add_1", NULL,
build_function_type_list(t, p, t, NULL_TREE), false);
t = go_type_for_size(BITS_PER_UNIT * 2, 1);
p = build_pointer_type(build_qualified_type(t, TYPE_QUAL_VOLATILE));
- define_builtin (BUILT_IN_ADD_AND_FETCH_2, "__sync_fetch_and_add_2", NULL,
+ define_builtin (BUILT_IN_SYNC_ADD_AND_FETCH_2, "__sync_fetch_and_add_2", NULL,
build_function_type_list(t, p, t, NULL_TREE), false);
t = go_type_for_size(BITS_PER_UNIT * 4, 1);
p = build_pointer_type(build_qualified_type(t, TYPE_QUAL_VOLATILE));
- define_builtin(BUILT_IN_ADD_AND_FETCH_4, "__sync_fetch_and_add_4", NULL,
+ define_builtin(BUILT_IN_SYNC_ADD_AND_FETCH_4, "__sync_fetch_and_add_4", NULL,
build_function_type_list(t, p, t, NULL_TREE), false);
t = go_type_for_size(BITS_PER_UNIT * 8, 1);
p = build_pointer_type(build_qualified_type(t, TYPE_QUAL_VOLATILE));
- define_builtin(BUILT_IN_ADD_AND_FETCH_8, "__sync_fetch_and_add_8", NULL,
+ define_builtin(BUILT_IN_SYNC_ADD_AND_FETCH_8, "__sync_fetch_and_add_8", NULL,
build_function_type_list(t, p, t, NULL_TREE), false);
// We use __builtin_expect for magic import functions.