Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc-extra / historygraphs / stdcbench-0.7-mcs51.patch
blob52df9df45d8836fa55afd2350d9565589af6ca0a
1 diff -ur stdcbench-0.7/examples/portme.c.SDCC-C8051 stdcbench-mcs51/examples/portme.c.SDCC-C8051
2 --- stdcbench-0.7/examples/portme.c.SDCC-C8051 2020-10-28 10:21:11.000000000 +0100
3 +++ stdcbench-mcs51/examples/portme.c.SDCC-C8051 2023-07-07 10:22:28.742961597 +0200
4 @@ -43,7 +43,11 @@
5 return(ctmp);
8 +#if __SDCC_REVISION >= 13762
9 +unsigned char __sdcc_external_startup(void)
10 +#else
11 unsigned char _sdcc_external_startup(void)
12 +#endif
14 // Disable watchdog timer
15 WDTCN = 0xde;
16 diff -ur stdcbench-0.7/Makefile stdcbench-mcs51/Makefile
17 --- stdcbench-0.7/Makefile 2023-07-07 10:21:19.877401314 +0200
18 +++ stdcbench-mcs51/Makefile 2022-09-11 17:20:51.596357758 +0200
19 @@ -1,6 +1,6 @@
20 # A Makefile for SDCC targeting the C8051F120
22 -CC = sdcc -mmcs51 --model-large --stack-auto --opt-code-speed --max-allocs-per-node 10000
23 +CC = $(SDCC) $(SDCCFLAGS)
24 SOURCES = c90base.c c90base-data.c c90base-huffman-recursive.c c90base-isort.c c90float.c c90base-huffman_tree.c stdcbench.c c90base-compression.c c90base-huffman-iterative.c c90base-immul.c c90double.c c90lib.c c90lib-lnlc.c c90lib-peep.c c90lib-peep-stm8.c c90lib-htab.c portme.c
25 OBJECTS = $(SOURCES:.c=.rel)
27 @@ -10,6 +10,7 @@
29 stdcbench.ihx: $(OBJECTS)
30 $(CC) *.rel -o stdcbench.ihx
31 + cp stdcbench.ihx image.ihx
33 %.rel: %.c *.h portme.h
34 $(CC) -c $<