Closed nenadv closed 10 years ago
When compiling already preprocessed UPC code I get the errors tat suggest that the code is treated as a regular C code. For example:
# clang-upc -g -c t.upci /eng/upc/dev/nenad/clang-upc/src/upcr-clang/upcr.h:241: /eng/upc/dev/nenad/clang-upc/src/upcr-clang/upcr_io.h:7:11: error: unknown type name 'shared' typedef shared void *bupc_sharedptr_t; ^ /eng/upc/dev/nenad/clang-upc/src/upcr-clang/upcr_io.h:7:18: error: expected identifier or '(' typedef shared void *bupc_sharedptr_t;
Also, compiling files with ".i" extension gets this warning:
clang-3.4: warning: treating 'cpp-output' input as 'upc-cpp-output' when in UPC mode, this behavior is deprecated
Also note that Clang does not support "-fpreprocessed" switch that GCC has.
Fixed by https://github.com/Intrepid/clang-upc/commit/7b03b321c4dbc1bd4d9e4187c836d618c4b97b56
Also this commit https://github.com/Intrepid/clang-upc/commit/3364b0bc2b2678a10993569e9d3addc5d78d3fca prevents pre-include of clang-upc.h if input is a pre-processed file.
When compiling already preprocessed UPC code I get the errors tat suggest that the code is treated as a regular C code. For example:
Also, compiling files with ".i" extension gets this warning:
Also note that Clang does not support "-fpreprocessed" switch that GCC has.