clangupc / clang-upc

Clang UPC Front-End
https://clangupc.github.io/
Other
16 stars 5 forks source link

Emit parens around GCCAsmStmt input and output expressions #33

Closed PHHargrove closed 10 years ago

PHHargrove commented 10 years ago

Please consider pulling this small change which fixes backend compilation failures on the UTS tests in the Berkeley UPC test suite. The only change is to place parens around the input and output expressions, without which gcc-4.7.0 as the backend was complaining:

upcc: error compiling translated C code: 
brg_sha1.trans.c: In function 'sha1_hash':
brg_sha1.trans.c:337:56: error: expected '(' before '__v'
brg_sha1.trans.c: In function 'sha1_end':
brg_sha1.trans.c:360:48: error: expected '(' before '__v'