Skip to content

Commit 250ac48

Browse files
committedSep 15, 2016
Default to -O0.
1 parent b761c60 commit 250ac48

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎fundamentals5/GNUmakefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PROGRAMS = fib nogcbench gcbench
22
all: $(PROGRAMS)
33

4+
O ?= 0
45
include ../common/rules.mk
56

67
%.o: %.c $(BUILDSTAMP)

‎fundamentals5/m61gc.c

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ void m61_print_allocations(void) {
9494
printf(" #%zu: %p: %zu bytes\n", i, allocs[i].ptr, allocs[i].sz);
9595
}
9696

97+
static void mark_allocations(const char* base, size_t sz) __attribute__((used));
9798
static void mark_allocations(const char* base, size_t sz) {
9899
(void) base, (void) sz;
99100
}

0 commit comments

Comments
 (0)
Please sign in to comment.