]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
gpsd: work-around ICE when compiling for microblaze with GCC5
authorSergio Prado <sergio.prado@e-labworks.com>
Sun, 22 Nov 2015 15:43:24 +0000 (13:43 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 29 Nov 2015 13:45:53 +0000 (14:45 +0100)
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

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gpsd/gpsd.mk

index aa35053baf0998bc1bf6051b9fe81d36decce9ac..d603ba5c96c8cbb70e756446f62134ca7eef7b13 100644 (file)
@@ -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