← Commit list

9e0879a1c

Denys Vlasenko
Denys Vlasenko
2010-01-18
FAILED Duration: 35s

Subject

diff: add NOINLINE

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/diff.c+4 -2
@@ -409,7 +409,7 @@ static void fetch(FILE_and_pos_t *ft, const off_t *ix, int a, int b, int ch)
* assigned dynamically allocated vectors of the offsets of the lines
* of the old and new file respectively. These must be freed by the caller.
*/
-static int *create_J(FILE_and_pos_t ft[2], int nlen[2], off_t *ix[2])
+static NOINLINE int *create_J(FILE_and_pos_t ft[2], int nlen[2], off_t *ix[2])
{
int *J, slen[2], *class, *member;
struct line *nfile[2], *sfile[2];
@@ -542,8 +542,10 @@ start:
tok1 = read_token(&ft[1], tok1);
if (((tok0 ^ tok1) & TOK_EMPTY) != 0 /* one is empty (not both) */
- || (!(tok0 & TOK_EMPTY) && TOK2CHAR(tok0) != TOK2CHAR(tok1)))
+ || (!(tok0 & TOK_EMPTY) && TOK2CHAR(tok0) != TOK2CHAR(tok1))
+ ) {
J[i] = 0; /* Break the correspondence */
+ }
} while (!(tok0 & tok1 & TOK_EMPTY));
}
}