Skip to contentSkip to conversation

gpsd: work-around ICE when compiling for microblaze with GCC5

PATCH New Sergio Prado 2 participants 2 messages Nov 22, 2015 – Nov 29, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpsd: work-around ICE when compiling for microblaze with GCC5

GCC 5.X generates an ICE when compiling gpsd for microblaze due to optimizations, so lets disable it for now to works around this problem.

A bug was reported to the gcc bug tracker:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485

---
 package/gpsd/gpsd.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/gpsd/gpsd.mk +3 -1
index aa35053baf09..d603ba5c96c8 100644
@@ -39,8 +39,10 @@ GPSD_SCONS_OPTS += libgpsmm=no
 endif
 
 # prevents from triggering GCC ICE
+# A bug was reported to the gcc bug tracker:
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485
 ifeq ($(BR2_microblaze),y)
-GPSD_CFLAGS += -fno-expensive-optimizations
+GPSD_CFLAGS += -fno-expensive-optimizations -fno-schedule-insns
 endif
 
 # Enable or disable Qt binding
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 gpsd: work-around ICE when compiling for microblaze with GCC5

Dear Sergio Prado,

Quoted 11 lines · Sergio Prado

GCC 5.X generates an ICE when compiling gpsd for microblaze due to optimizations, so lets disable it for now to works around this problem.

A bug was reported to the gcc bug tracker:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485

---
 package/gpsd/gpsd.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com