scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 5961728fea60e49b60b03fa3810cd18bc9ade20a
parent 47291884d6a9f36de7a67f361056166688e95ac4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 27 Dec 2024 12:51:36 +0100

cc2/qbe: Rename peep.c to stubs.c

Peep() is only a stub and new stubs are expected.

Diffstat:
Msrc/cmd/scc-cc/cc2/qbe/Makefile | 2+-
Dsrc/cmd/scc-cc/cc2/qbe/peep.c | 8--------
Asrc/cmd/scc-cc/cc2/qbe/stubs.c | 12++++++++++++
3 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/cmd/scc-cc/cc2/qbe/Makefile b/src/cmd/scc-cc/cc2/qbe/Makefile @@ -7,7 +7,7 @@ include $(PROJECTDIR)/scripts/rules.mk OBJS =\ cgen.o \ code.o \ - peep.o \ + stubs.o \ all: builtin.o diff --git a/src/cmd/scc-cc/cc2/qbe/peep.c b/src/cmd/scc-cc/cc2/qbe/peep.c @@ -1,7 +0,0 @@ -#include <scc/scc.h> -#include "../cc2.h" - -void -peephole(void) -{ -} -\ No newline at end of file diff --git a/src/cmd/scc-cc/cc2/qbe/stubs.c b/src/cmd/scc-cc/cc2/qbe/stubs.c @@ -0,0 +1,12 @@ +/* + * This file only provides stubs of functions that are + * not needed for qbe + */ +#include <scc/scc.h> + +#include "../cc2.h" + +void +peephole(void) +{ +}