Change noinline to dontinline (#312)

We defined `noinline` as an abbreviation for the longer version
`__attribute__((__noinline__))` which caused name clashes since
third party codebases often write it as `__attribute__((noinline))`.
This commit is contained in:
Gautham 2021-11-13 04:42:18 +05:30 committed by GitHub
parent ca611efc43
commit 6f658f058b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 122 additions and 122 deletions

View file

@ -76,12 +76,12 @@ TEST(gclongjmp, test) {
free(x);
}
noinline void F1(void) {
dontinline void F1(void) {
/* 3x slower than F2() but sooo worth it */
gc(malloc(16));
}
noinline void F2(void) {
dontinline void F2(void) {
void *volatile p;
p = malloc(16);
free(p);

View file

@ -29,7 +29,7 @@
long i, j, n;
char *b0, *b1, *b2;
noinline char *PosixMemmove(char *dst, const char *src, size_t n) {
dontinline char *PosixMemmove(char *dst, const char *src, size_t n) {
char *tmp;
tmp = malloc(n);
memcpy(tmp, src, n);