summaryrefslogtreecommitdiffstats
path: root/patches/fbtest-20041102-1/0003-Workaround-for-a-gcc-compiler-bug.patch
blob: 69bc6cf7ace85777600112d53b06f2d97ee65f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: Robert Schwebel <r.schwebel@pengutronix.de>
Date: Sun, 30 Oct 2011 22:18:39 +0100
Subject: [PATCH] Workaround for a gcc compiler bug

With older or unpatched gccs, we get this error:

arm-v4t-linux-gnueabi-gcc -c -Wall -I../include  -O3 -fomit-frame-pointer -o directcolor.o directcolor.c
directcolor.c: In function 'directcolor_update_cmap':
directcolor.c:154: error: unrecognizable insn:
(insn 275 117 273 13 (set (reg:HI 14 lr)
        (mem/s:HI (plus:SI (mult:SI (reg/v:SI 1 r1 [orig:112 i ] [112])
                    (const_int 16 [0x10]))
                (reg:SI 6 r6 [orig:120 clut.21 ] [120])) [11 <variable>.r+0 S4 A32])) -1 (nil)
    (nil))
directcolor.c:154: internal compiler error: in extract_insn, at recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [directcolor.o] Error 1

The bug is described here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28675

It is closed in recent 4.1, 4.2 and later versions of gcc.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
 Rules.make |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Rules.make b/Rules.make
index a002453..5ef8cef 100644
--- a/Rules.make
+++ b/Rules.make
@@ -5,7 +5,7 @@ HOSTCC = gcc
 
 IFLAGS = -I$(TOPDIR)/include
 #DFLAGS = -g
-OFLAGS = -O3 -fomit-frame-pointer
+OFLAGS = -O2 -fomit-frame-pointer
 CFLAGS = -Wall $(IFLAGS) $(DFLAGS) $(OFLAGS)
 
 SRCS += $(wildcard *.c)