Per the UPC 1.3 specification, the type of the
commit07545424808152db5b777fb1a2072c11615837c5
authorgfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Apr 2013 00:51:12 +0000 (5 00:51 +0000)
committergfunck <gfunck@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Apr 2013 00:51:12 +0000 (5 00:51 +0000)
treec00802e93da5fcb480fa475585bfb491d34f5f2d
parent86010f1b1c865fc763200394da27a2a017e58c45
Per the UPC 1.3 specification, the type of the
optional barrier/notify/wait expression is not constrained to
'int'. Instead, any type that is assignment compatible
with an 'int' type is permitted.
* c/c-parser.c (c_parser_upc_sync_statement): Do not check
the optional expression type here.  Let upc_build_sync_stmt()
handle it.
* c/c-tree.h (c_cvt_expr_for_assign): Declare prototype.
* c/c-typeck.c (c_cvt_expr_for_assign): New.  Also, call
error_at() in lieu of error() when the source location is known.
* upc/upc-act.c (upc_build_sync_stmt): Call c_cvt_expr_for_assign()
to check/convert the optional synchronization statement
expression.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gupc@197503 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.upc
gcc/c/c-parser.c
gcc/c/c-tree.h
gcc/c/c-typeck.c
gcc/upc/upc-act.c