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