| // This header provides replacements for certain libc functions. It is necessary |
| // in order to safely run the tests on aarch64, because the system libc might |
| // not have been compiled with -ffixed-x18. |
| size_t scs_strlen(const char *p) { |
| // We mark this function as noinline to make sure that its callers do not |
| // become leaf functions as a result of inlining. This is because we want to |
| // make sure that we generate the correct code for non-leaf functions. |
| __attribute__((noinline)) void scs_fputs_stdout(const char *p) { |
| : "x0", "x1", "x2", "x8"); |
| #error Unsupported platform |