]> git.pld-linux.org Git - packages/qemu.git/blame - qemu-gcc-workaround.patch
- gcc 3.4 segfault for mips
[packages/qemu.git] / qemu-gcc-workaround.patch
CommitLineData
52d7c1d8
AM
1--- Makefile.target 2008-08-05 08:38:17.991144535 +0200
2+++ Makefile.target 2008-08-05 08:37:45.207818516 +0200
3@@ -71,6 +71,15 @@
4 TARGET_ARCH2=mips64el
5 endif
6 endif
7+
8+ifeq ($(TARGET_ARCH),mips)
9+ GCC_WORKAROUND="-O0"
10+endif
11+ifeq ($(TARGET_ARCH),mips64)
12+ GCC_WORKAROUND="-O0"
13+endif
14+
15+
16 QEMU_USER=qemu-$(TARGET_ARCH2)
17 # system emulator name
18 ifdef CONFIG_SOFTMMU
19@@ -599,7 +608,7 @@
20 $(DYNGEN) -g -o $@ $<
21
22 op.o: op.c
23- $(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<
24+ $(CC) $(OP_CFLAGS) $(CPPFLAGS) $(GCC_WORKAROUND) -c -o $@ $<
25
26 # HELPER_CFLAGS is used for all the code compiled with static register
27 # variables
This page took 0.063293 seconds and 4 git commands to generate.