scc

suckless C compiler
git clone git://git.suckless.org/scc
Log | Files | Refs | README | LICENSE

commit 10179858ebe703a0245279a17c08f97109510f45
parent 614668a41b6c946aefad337904b82091ab16d6b4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  7 Mar 2017 08:42:44 +0100

Change .as extension to .s

.as is a two letter extension which makes harder to write makefile rules.
Commonly assembler files are noted using .s extension.

Diffstat:
crt/amd64-linux/crt.as | 8--------
crt/amd64-linux/crt.s | 8++++++++
driver/posix/scc.c | 4++--
3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/crt/amd64-linux/crt.as b/crt/amd64-linux/crt.as @@ -1,8 +0,0 @@ - .file "crt.as" - .text - .global _start - -_start: - call main - movl %eax, %edi - call exit diff --git a/crt/amd64-linux/crt.s b/crt/amd64-linux/crt.s @@ -0,0 +1,8 @@ + .file "crt.as" + .text + .global _start + +_start: + call main + movl %eax, %edi + call exit diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -187,7 +187,7 @@ settool(int tool, char *infile, int nexttool) addarg(tool, t->outfile); break; case TEEAS: - t->outfile = outfname(infile, "as"); + t->outfile = outfname(infile, "s"); addarg(tool, t->outfile); break; case AS: @@ -275,7 +275,7 @@ toolfor(char *file) return CC2; if (!strcmp(dot, ".qbe")) return QBE; - if (!strcmp(dot, ".as")) + if (!strcmp(dot, ".s")) return AS; if (!strcmp(dot, ".o")) return LD;