gcc-15 bug fixed
This commit is contained in:
6
Makefile
6
Makefile
@ -85,7 +85,7 @@ LD = $(TOOLPREFIX)ld
|
|||||||
OBJCOPY = $(TOOLPREFIX)objcopy
|
OBJCOPY = $(TOOLPREFIX)objcopy
|
||||||
OBJDUMP = $(TOOLPREFIX)objdump
|
OBJDUMP = $(TOOLPREFIX)objdump
|
||||||
|
|
||||||
CFLAGS = -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2
|
CFLAGS = -Wall -Werror -O1 -fno-omit-frame-pointer -ggdb -gdwarf-2
|
||||||
|
|
||||||
ifdef LAB
|
ifdef LAB
|
||||||
LABUPPER = $(shell echo $(LAB) | tr a-z A-Z)
|
LABUPPER = $(shell echo $(LAB) | tr a-z A-Z)
|
||||||
@ -238,10 +238,10 @@ $U/_uthread: $U/uthread.o $U/uthread_switch.o $(ULIB)
|
|||||||
$(OBJDUMP) -S $U/_uthread > $U/uthread.asm
|
$(OBJDUMP) -S $U/_uthread > $U/uthread.asm
|
||||||
|
|
||||||
ph: notxv6/ph.c
|
ph: notxv6/ph.c
|
||||||
gcc -o ph -g -O2 $(XCFLAGS) notxv6/ph.c -pthread
|
gcc -o ph -g -Ofast $(XCFLAGS) notxv6/ph.c -pthread
|
||||||
|
|
||||||
barrier: notxv6/barrier.c
|
barrier: notxv6/barrier.c
|
||||||
gcc -o barrier -g -O2 $(XCFLAGS) notxv6/barrier.c -pthread
|
gcc -o barrier -g -Ofast $(XCFLAGS) notxv6/barrier.c -pthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(LAB),pgtbl)
|
ifeq ($(LAB),pgtbl)
|
||||||
|
|||||||
@ -244,7 +244,7 @@ copyinstr3(char *s)
|
|||||||
// See if the kernel refuses to read/write user memory that the
|
// See if the kernel refuses to read/write user memory that the
|
||||||
// application doesn't have anymore, because it returned it.
|
// application doesn't have anymore, because it returned it.
|
||||||
void
|
void
|
||||||
rwsbrk()
|
rwsbrk(char* arg)
|
||||||
{
|
{
|
||||||
int fd, n;
|
int fd, n;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user