aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2011-06-21 19:04:33 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2011-06-21 19:04:33 +0000
commite0a8ecf2a2df715d56d193bd80f2c60dc1851359 (patch)
tree542172a8d8596f3d22965c815b00a724d0f38352 /gcc/fortran
parent663827d3e5b2ae5fdbcc8b2b6591910b886af3b2 (diff)
downloadgcc-e0a8ecf2a2df715d56d193bd80f2c60dc1851359.zip
gcc-e0a8ecf2a2df715d56d193bd80f2c60dc1851359.tar.gz
gcc-e0a8ecf2a2df715d56d193bd80f2c60dc1851359.tar.bz2
cosmetic. Add sync_ to all the expand_builtin defines which do not match the actual builtin_sync_ names.
2011-06-21 Andrew MacLeod <amacleod@redhat.com> * builtins.c: Add sync_ or SYNC__ to builtin names. * sync-builtins.def: Add sync_ or SYNC__ to builtin names. * omp-low.c: Add sync_ or SYNC__ to builtin names. * c-family/c-common.c: Add sync_ or SYNC__ to builtin names. * c-family/c-omp.c: Add sync_ or SYNC__ to builtin names. * java/builtins.c: Add sync_ or SYNC__ to builtin names. * java/expr.c: Add sync_ or SYNC__ to builtin names. * cp/semantics.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-openmp.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-stmt.c: Add sync_ or SYNC__ to builtin names. * fortran/trans-decl.c: Add sync_ or SYNC__ to builtin names. From-SVN: r175270
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/trans-decl.c2
-rw-r--r--gcc/fortran/trans-openmp.c2
-rw-r--r--gcc/fortran/trans-stmt.c4
4 files changed, 10 insertions, 4 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 7d45cd4..b1f4853 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-21 Andrew MacLeod <amacleod@redhat.com>
+
+ * trans-openmp.c: Add sync_ or SYNC__ to builtin names.
+ * trans-stmt.c: Add sync_ or SYNC__ to builtin names.
+ * trans-decl.c: Add sync_ or SYNC__ to builtin names.
+
2011-06-21 Janus Weil <janus@gcc.gnu.org>
PR fortran/49112
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index 6c6de13..cca1beb 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -4904,7 +4904,7 @@ create_main_function (tree fndecl)
{
/* Per F2008, 8.5.1 END of the main program implies a
SYNC MEMORY. */
- tmp = built_in_decls [BUILT_IN_SYNCHRONIZE];
+ tmp = built_in_decls [BUILT_IN_SYNC_SYNCHRONIZE];
tmp = build_call_expr_loc (input_location, tmp, 0);
gfc_add_expr_to_block (&body, tmp);
diff --git a/gcc/fortran/trans-openmp.c b/gcc/fortran/trans-openmp.c
index 7554889..9677659 100644
--- a/gcc/fortran/trans-openmp.c
+++ b/gcc/fortran/trans-openmp.c
@@ -1430,7 +1430,7 @@ gfc_trans_omp_do (gfc_code *code, stmtblock_t *pblock,
static tree
gfc_trans_omp_flush (void)
{
- tree decl = built_in_decls [BUILT_IN_SYNCHRONIZE];
+ tree decl = built_in_decls [BUILT_IN_SYNC_SYNCHRONIZE];
return build_call_expr_loc (input_location, decl, 0);
}
diff --git a/gcc/fortran/trans-stmt.c b/gcc/fortran/trans-stmt.c
index a5f2d9e..f3347a6 100644
--- a/gcc/fortran/trans-stmt.c
+++ b/gcc/fortran/trans-stmt.c
@@ -602,7 +602,7 @@ gfc_trans_stop (gfc_code *code, bool error_stop)
if (gfc_option.coarray == GFC_FCOARRAY_LIB && !error_stop)
{
/* Per F2008, 8.5.1 STOP implies a SYNC MEMORY. */
- tmp = built_in_decls [BUILT_IN_SYNCHRONIZE];
+ tmp = built_in_decls [BUILT_IN_SYNC_SYNCHRONIZE];
tmp = build_call_expr_loc (input_location, tmp, 0);
gfc_add_expr_to_block (&se.pre, tmp);
@@ -774,7 +774,7 @@ gfc_trans_sync (gfc_code *code, gfc_exec_op type)
image control statements SYNC IMAGES and SYNC ALL. */
if (gfc_option.coarray == GFC_FCOARRAY_LIB)
{
- tmp = built_in_decls [BUILT_IN_SYNCHRONIZE];
+ tmp = built_in_decls [BUILT_IN_SYNC_SYNCHRONIZE];
tmp = build_call_expr_loc (input_location, tmp, 0);
gfc_add_expr_to_block (&se.pre, tmp);
}