ref: 430ab4eac5f50feafdde18e19e8f5658383633d7
parent: e5262129cbf2d51cc576c37d8f78aa40ff1ead5b
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Dec 1 05:34:40 EST 2016
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.
--- 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"
--- 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"
--- 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"
--- 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"
--- 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>
--- 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>
--- 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>
--- 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>
--- 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>
--- 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>
--- 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>
--- 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>
--- 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>
--- 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>
--- 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>
--- 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>
--- 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"
--- 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>
--- 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"
--- 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"
--- 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"
--- 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>
--- 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"
--- 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"
--- 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>
--- 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>
--- 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>
--- 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"
--- 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"
--- 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>
--- 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"
--- 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"
--- 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>
--- 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>
--- 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>
--- 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>
--- 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"
--- 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>
--- 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>
--- 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>
--- 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>
--- 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"
--- 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"
--- 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"
--- 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"