scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit c54001c818324371bcd4b29f52ab99171ef267cb
parent c014ddd08af345cb352d1d717a2252fae275aa9f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  1 Dec 2016 10:34:40 +0100

Add sccsid strings

Due to the last changes in the makefile the build process is a bit
unstable now, and in some cases we think that is possible to link
objects of different architectures. Using sccsid strings and the
what command can help us to detect problems.

Be aware that gcc is too clever and knows better than you what
you want to do, and if it has some level of optimization it
deletes the strings if there is some level of optiization,
so if you want to see them use -O0.

Diffstat:
Mcc1/arch/amd64-sysv/arch.c | 1+
Mcc1/arch/i386-sysv/arch.c | 1+
Mcc1/arch/qbe/arch.c | 1+
Mcc1/arch/z80/arch.c | 1+
Mcc1/code.c | 1+
Mcc1/cpp.c | 1+
Mcc1/decl.c | 1+
Mcc1/error.c | 1+
Mcc1/expr.c | 1+
Mcc1/fold.c | 1+
Mcc1/init.c | 1+
Mcc1/lex.c | 1+
Mcc1/main.c | 1+
Mcc1/stmt.c | 1+
Mcc1/symbol.c | 1+
Mcc1/types.c | 1+
Mcc2/arch/amd64-sysv/cgen.c | 1+
Mcc2/arch/amd64-sysv/code.c | 1+
Mcc2/arch/amd64-sysv/optm.c | 1+
Mcc2/arch/amd64-sysv/types.c | 1+
Mcc2/arch/i386-sysv/cgen.c | 1+
Mcc2/arch/i386-sysv/code.c | 1+
Mcc2/arch/i386-sysv/optm.c | 1+
Mcc2/arch/i386-sysv/types.c | 1+
Mcc2/arch/qbe/cgen.c | 1+
Mcc2/arch/qbe/code.c | 1+
Mcc2/arch/qbe/optm.c | 1+
Mcc2/arch/qbe/types.c | 1+
Mcc2/arch/z80/cgen.c | 1+
Mcc2/arch/z80/code.c | 1+
Mcc2/arch/z80/optm.c | 1+
Mcc2/arch/z80/types.c | 1+
Mcc2/code.c | 1+
Mcc2/main.c | 1+
Mcc2/node.c | 1+
Mcc2/parser.c | 1+
Mcc2/peep.c | 1+
Mcc2/symbol.c | 1+
Mdriver/posix/scc.c | 1+
Mlib/debug.c | 1+
Mlib/die.c | 1+
Mlib/xcalloc.c | 1+
Mlib/xmalloc.c | 1+
Mlib/xrealloc.c | 1+
Mlib/xstrdup.c | 1+
45 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/cc1/arch/amd64-sysv/arch.c b/cc1/arch/amd64-sysv/arch.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/arch/amd64-sysv/arch.c"; #include <stdio.h> #include "../../../inc/cc.h" diff --git a/cc1/arch/i386-sysv/arch.c b/cc1/arch/i386-sysv/arch.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/arch/i386-sysv/arch.c"; #include <stdio.h> #include "../../../inc/cc.h" #include "../../cc1.h" diff --git a/cc1/arch/qbe/arch.c b/cc1/arch/qbe/arch.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/arch/qbe/arch.c"; #include <stdio.h> #include "../../../inc/cc.h" diff --git a/cc1/arch/z80/arch.c b/cc1/arch/z80/arch.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/arch/z80/arch.c"; #include <stdio.h> #include "../../../inc/cc.h" diff --git a/cc1/code.c b/cc1/code.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/code.c"; #include <ctype.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/cpp.c"; #include <ctype.h> #include <limits.h> #include <stdio.h> diff --git a/cc1/decl.c b/cc1/decl.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/decl.c"; #include <setjmp.h> #include <stdarg.h> #include <stdio.h> diff --git a/cc1/error.c b/cc1/error.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/error.c"; #include <stdarg.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/expr.c b/cc1/expr.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/expr.c"; #include <assert.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/fold.c b/cc1/fold.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/fold.c"; #include <stdio.h> #include <stdlib.h> diff --git a/cc1/init.c b/cc1/init.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/init.c"; #include <stdint.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/lex.c b/cc1/lex.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/lex.c"; #include <ctype.h> #include <errno.h> #include <setjmp.h> diff --git a/cc1/main.c b/cc1/main.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/main.c"; #include <setjmp.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/stmt.c b/cc1/stmt.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/stmt.c"; #include <stddef.h> #include <setjmp.h> #include <stdio.h> diff --git a/cc1/symbol.c b/cc1/symbol.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/symbol.c"; #include <limits.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/types.c b/cc1/types.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc1/types.c"; #include <inttypes.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc2/arch/amd64-sysv/cgen.c b/cc2/arch/amd64-sysv/cgen.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/amd64-sysv/cgen.c"; #include "arch.h" #include "../../../inc/cc.h" diff --git a/cc2/arch/amd64-sysv/code.c b/cc2/arch/amd64-sysv/code.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/amd64-sysv/code.c"; #include <stdio.h> #include <stdlib.h> diff --git a/cc2/arch/amd64-sysv/optm.c b/cc2/arch/amd64-sysv/optm.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/amd64-sysv/optm.c"; #include "../../../inc/cc.h" #include "../../cc2.h" diff --git a/cc2/arch/amd64-sysv/types.c b/cc2/arch/amd64-sysv/types.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/amd64-sysv/types.c"; #include "../../../inc/cc.h" #include "../../cc2.h" diff --git a/cc2/arch/i386-sysv/cgen.c b/cc2/arch/i386-sysv/cgen.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/i386-sysv/cgen.c"; #include "arch.h" #include "../../../inc/cc.h" diff --git a/cc2/arch/i386-sysv/code.c b/cc2/arch/i386-sysv/code.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/i386-sysv/code.c"; #include <stdio.h> #include <stdlib.h> diff --git a/cc2/arch/i386-sysv/optm.c b/cc2/arch/i386-sysv/optm.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/i386-sysv/optm.c"; #include "../../../inc/cc.h" #include "../../cc2.h" diff --git a/cc2/arch/i386-sysv/types.c b/cc2/arch/i386-sysv/types.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/i386-sysv/types.c"; #include "../../../inc/cc.h" #include "../../cc2.h" diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/qbe/cgen.c"; #include <assert.h> #include <stdlib.h> diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/qbe/code.c"; #include <stdio.h> #include <stdlib.h> diff --git a/cc2/arch/qbe/optm.c b/cc2/arch/qbe/optm.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/qbe/optm.c"; #include <stddef.h> diff --git a/cc2/arch/qbe/types.c b/cc2/arch/qbe/types.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/qbe/types.c"; #include "../../../inc/cc.h" #include "../../cc2.h" diff --git a/cc2/arch/z80/cgen.c b/cc2/arch/z80/cgen.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/z80/cgen.c"; #include "arch.h" #include "../../../inc/cc.h" diff --git a/cc2/arch/z80/code.c b/cc2/arch/z80/code.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/z80/code.c"; #include <stdio.h> #include <stdlib.h> diff --git a/cc2/arch/z80/optm.c b/cc2/arch/z80/optm.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/z80/optm.c"; #include "../../../inc/cc.h" #include "../../cc2.h" diff --git a/cc2/arch/z80/types.c b/cc2/arch/z80/types.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/arch/z80/types.c"; #include "../../../inc/cc.h" #include "../../cc2.h" diff --git a/cc2/code.c b/cc2/code.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/code.c"; #include <stdlib.h> #include <string.h> diff --git a/cc2/main.c b/cc2/main.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/main.c"; #include <stdarg.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc2/node.c b/cc2/node.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/node.c"; #include <stdlib.h> #include <string.h> diff --git a/cc2/parser.c b/cc2/parser.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/parser.c"; #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc2/peep.c b/cc2/peep.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/peep.c"; #include "../inc/cc.h" #include "cc2.h" diff --git a/cc2/symbol.c b/cc2/symbol.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./cc2/symbol.c"; #include <limits.h> #include <stdio.h> #include <stdlib.h> diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./driver/posix/scc.c"; #define _POSIX_SOURCE #define _XOPEN_SOURCE 500 #include <sys/types.h> diff --git a/lib/debug.c b/lib/debug.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./lib/debug.c"; #include <stdarg.h> #include <stdio.h> diff --git a/lib/die.c b/lib/die.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./lib/die.c"; #include <inttypes.h> #include <stdarg.h> #include <stdlib.h> diff --git a/lib/xcalloc.c b/lib/xcalloc.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./lib/xcalloc.c"; #include <stdlib.h> #include "../inc/cc.h" diff --git a/lib/xmalloc.c b/lib/xmalloc.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./lib/xmalloc.c"; #include <stdlib.h> #include "../inc/cc.h" diff --git a/lib/xrealloc.c b/lib/xrealloc.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./lib/xrealloc.c"; #include <stdlib.h> #include "../inc/cc.h" diff --git a/lib/xstrdup.c b/lib/xstrdup.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +static char sccsid[] = "@(#) ./lib/xstrdup.c"; #include <string.h> #include "../inc/cc.h"