[cxx] C++ does not have restrict.
commit79d7029ef751fb01cea5defe6198f201b1f7a62b
authorJay Krell <jaykrell@microsoft.com>
Tue, 28 Aug 2018 19:13:25 +0000 (28 12:13 -0700)
committerJay Krell <jaykrell@microsoft.com>
Tue, 28 Aug 2018 19:16:19 +0000 (28 12:16 -0700)
tree175d364e7e6027a347f47c626d2b85da8d37dcfd
parentbd5cfc830b8a29ae56fbea5420bc58194f031ca5
[cxx] C++ does not have restrict.
gcc/clang do have __restrict and/or __restrict__.
On MacOSX, __restrict is preprocessed out of the headers for C++.
On Linux, __restrict is used and preserved for C++.
I didn't check others.

__restrict does not appear to be part of the function signature.
You cannot overload on it.
It is not in the mangled name.
If you declare one way and implement the other, there is no warning or error.

Therefore, remove restrict.

There are alternatives.
One could preserve it for C only.
One could preserve it for C and for Linux/C++.
One could preserve it based on autoconf, and autoconf results on Mac and Linux.

Perhaps as well we will autoconf or ifdef wasm away use of these functions?
 If we merely if them away, we still need them.
mono/mini/mini-wasm.c