[hackers] [scc] Add sccsid strings || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 1 Dec 2016 10:40:18 +0100 (CET)

commit c54001c818324371bcd4b29f52ab99171ef267cb
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Dec 1 10:34:40 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Dec 1 10:34:40 2016 +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.

diff --git a/cc1/arch/amd64-sysv/arch.c b/cc1/arch/amd64-sysv/arch.c
index a7d09c3..8e3b43e 100644
--- a/cc1/arch/amd64-sysv/arch.c
+++ b/cc1/arch/amd64-sysv/arch.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 5d215e7..48f1da2 100644
--- a/cc1/arch/i386-sysv/arch.c
+++ b/cc1/arch/i386-sysv/arch.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 72b2bfb..dbbe8db 100644
--- a/cc1/arch/qbe/arch.c
+++ b/cc1/arch/qbe/arch.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index a5e9cc2..f41094f 100644
--- a/cc1/arch/z80/arch.c
+++ b/cc1/arch/z80/arch.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/arch/z80/arch.c";
 #include <stdio.h>
 
 #include "../../../inc/cc.h"
diff --git a/cc1/code.c b/cc1/code.c
index 6c0ff45..6774fac 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/code.c";
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cc1/cpp.c b/cc1/cpp.c
index 682a371..48ee98a 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/cpp.c";
 #include <ctype.h>
 #include <limits.h>
 #include <stdio.h>
diff --git a/cc1/decl.c b/cc1/decl.c
index 7180a30..47aa36a 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/decl.c";
 #include <setjmp.h>
 #include <stdarg.h>
 #include <stdio.h>
diff --git a/cc1/error.c b/cc1/error.c
index 65afa7d..785e2ed 100644
--- a/cc1/error.c
+++ b/cc1/error.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/error.c";
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cc1/expr.c b/cc1/expr.c
index 9a0e406..a759cc9 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/expr.c";
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cc1/fold.c b/cc1/fold.c
index d49412b..b21046c 100644
--- a/cc1/fold.c
+++ b/cc1/fold.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/fold.c";
 #include <stdio.h>
 #include <stdlib.h>
 
diff --git a/cc1/init.c b/cc1/init.c
index 854fa4f..935a856 100644
--- a/cc1/init.c
+++ b/cc1/init.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/init.c";
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cc1/lex.c b/cc1/lex.c
index f6d8536..d03b031 100644
--- a/cc1/lex.c
+++ b/cc1/lex.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/lex.c";
 #include <ctype.h>
 #include <errno.h>
 #include <setjmp.h>
diff --git a/cc1/main.c b/cc1/main.c
index 16f9f1a..a87e23e 100644
--- a/cc1/main.c
+++ b/cc1/main.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/main.c";
 #include <setjmp.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cc1/stmt.c b/cc1/stmt.c
index 489eac1..a5dfae6 100644
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/stmt.c";
 #include <stddef.h>
 #include <setjmp.h>
 #include <stdio.h>
diff --git a/cc1/symbol.c b/cc1/symbol.c
index d8c3ce4..a331ef5 100644
--- a/cc1/symbol.c
+++ b/cc1/symbol.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc1/symbol.c";
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cc1/types.c b/cc1/types.c
index 0420c16..7f8ba72 100644
--- a/cc1/types.c
+++ b/cc1/types.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 8270448..e987ff2 100644
--- a/cc2/arch/amd64-sysv/cgen.c
+++ b/cc2/arch/amd64-sysv/cgen.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 2d9740a..3a16ede 100644
--- a/cc2/arch/amd64-sysv/code.c
+++ b/cc2/arch/amd64-sysv/code.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 8097b4d..90a8e84 100644
--- a/cc2/arch/amd64-sysv/optm.c
+++ b/cc2/arch/amd64-sysv/optm.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 7ab3ee1..5d8d81b 100644
--- a/cc2/arch/amd64-sysv/types.c
+++ b/cc2/arch/amd64-sysv/types.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 8270448..f54a5e1 100644
--- a/cc2/arch/i386-sysv/cgen.c
+++ b/cc2/arch/i386-sysv/cgen.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 47d13a0..8d1a8ff 100644
--- a/cc2/arch/i386-sysv/code.c
+++ b/cc2/arch/i386-sysv/code.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 8097b4d..f6b1911 100644
--- a/cc2/arch/i386-sysv/optm.c
+++ b/cc2/arch/i386-sysv/optm.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 92f0034..2050f22 100644
--- a/cc2/arch/i386-sysv/types.c
+++ b/cc2/arch/i386-sysv/types.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index a59f312..95cceb4 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index a931620..885dfae 100644
--- a/cc2/arch/qbe/code.c
+++ b/cc2/arch/qbe/code.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 5e0d082..8f3eb14 100644
--- a/cc2/arch/qbe/optm.c
+++ b/cc2/arch/qbe/optm.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc2/arch/qbe/optm.c";
 
 #include <stddef.h>
 
diff --git a/cc2/arch/qbe/types.c b/cc2/arch/qbe/types.c
index 7ab3ee1..66ee84d 100644
--- a/cc2/arch/qbe/types.c
+++ b/cc2/arch/qbe/types.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index f1dfee4..a509caf 100644
--- a/cc2/arch/z80/cgen.c
+++ b/cc2/arch/z80/cgen.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 541516c..97603d1 100644
--- a/cc2/arch/z80/code.c
+++ b/cc2/arch/z80/code.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index 8097b4d..f171b03 100644
--- a/cc2/arch/z80/optm.c
+++ b/cc2/arch/z80/optm.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index cc491c6..7238c6f 100644
--- a/cc2/arch/z80/types.c
+++ b/cc2/arch/z80/types.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc2/arch/z80/types.c";
 
 #include "../../../inc/cc.h"
 #include "../../cc2.h"
diff --git a/cc2/code.c b/cc2/code.c
index 853841f..823612b 100644
--- a/cc2/code.c
+++ b/cc2/code.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc2/code.c";
 #include <stdlib.h>
 #include <string.h>
 
diff --git a/cc2/main.c b/cc2/main.c
index d6a4d7a..c556e46 100644
--- a/cc2/main.c
+++ b/cc2/main.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc2/main.c";
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cc2/node.c b/cc2/node.c
index 0ab366b..0c94ba8 100644
--- a/cc2/node.c
+++ b/cc2/node.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc2/node.c";
 #include <stdlib.h>
 #include <string.h>
 
diff --git a/cc2/parser.c b/cc2/parser.c
index 34921c3..ec16694 100644
--- a/cc2/parser.c
+++ b/cc2/parser.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc2/parser.c";
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/cc2/peep.c b/cc2/peep.c
index 87273a5..f5a07b5 100644
--- a/cc2/peep.c
+++ b/cc2/peep.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc2/peep.c";
 #include "../inc/cc.h"
 #include "cc2.h"
 
diff --git a/cc2/symbol.c b/cc2/symbol.c
index fa3849c..3d5a342 100644
--- a/cc2/symbol.c
+++ b/cc2/symbol.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./cc2/symbol.c";
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index 7a04c9b..74f5299 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./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
index d16a291..74324fd 100644
--- a/lib/debug.c
+++ b/lib/debug.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./lib/debug.c";
 #include <stdarg.h>
 #include <stdio.h>
 
diff --git a/lib/die.c b/lib/die.c
index 3fcf995..cb0f46b 100644
--- a/lib/die.c
+++ b/lib/die.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./lib/die.c";
 #include <inttypes.h>
 #include <stdarg.h>
 #include <stdlib.h>
diff --git a/lib/xcalloc.c b/lib/xcalloc.c
index 5de09a4..54a43be 100644
--- a/lib/xcalloc.c
+++ b/lib/xcalloc.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./lib/xcalloc.c";
 #include <stdlib.h>
 #include "../inc/cc.h"
 
diff --git a/lib/xmalloc.c b/lib/xmalloc.c
index 9336705..51cc8ac 100644
--- a/lib/xmalloc.c
+++ b/lib/xmalloc.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./lib/xmalloc.c";
 #include <stdlib.h>
 #include "../inc/cc.h"
 
diff --git a/lib/xrealloc.c b/lib/xrealloc.c
index ee3de9e..d85d9c9 100644
--- a/lib/xrealloc.c
+++ b/lib/xrealloc.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./lib/xrealloc.c";
 #include <stdlib.h>
 #include "../inc/cc.h"
 
diff --git a/lib/xstrdup.c b/lib/xstrdup.c
index edd9b37..6a6ee35 100644
--- a/lib/xstrdup.c
+++ b/lib/xstrdup.c
_AT_@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+static char sccsid[] = "_AT_(#) ./lib/xstrdup.c";
 #include <string.h>
 #include "../inc/cc.h"
 
Received on Thu Dec 01 2016 - 10:40:18 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 01 2016 - 10:48:18 CET