mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-04 06:54:36 +02:00
lttng-tools: resurrect -O1 workaround dropped by #21
This is needed currently, as our 2013.11 and 2014.05 IB 1 toolchains are affected by gcc bug 58595, which is JIRA: CB-3083. Signed-off-by: Christopher Larson <kergoth@gmail.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
diff --git a/src/common/consumer.c b/src/common/consumer.c
|
||||
index ede214c..b10988b 100644
|
||||
--- a/src/common/consumer.c
|
||||
+++ b/src/common/consumer.c
|
||||
@@ -1,3 +1,5 @@
|
||||
+#pragma GCC optimize ("O1")
|
||||
+
|
||||
/*
|
||||
* Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
|
||||
* Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
||||
diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c
|
||||
index d15329f..78c7725 100644
|
||||
--- a/src/common/kernel-consumer/kernel-consumer.c
|
||||
+++ b/src/common/kernel-consumer/kernel-consumer.c
|
||||
@@ -1,3 +1,5 @@
|
||||
+#pragma GCC optimize ("O1")
|
||||
+
|
||||
/*
|
||||
* Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
|
||||
* Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
||||
diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c
|
||||
index 0955e66..0f8f75a 100644
|
||||
--- a/src/common/ust-consumer/ust-consumer.c
|
||||
+++ b/src/common/ust-consumer/ust-consumer.c
|
||||
@@ -1,3 +1,5 @@
|
||||
+#pragma GCC optimize ("O1")
|
||||
+
|
||||
/*
|
||||
* Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
|
||||
* Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
||||
2
core/recipes-kernel/lttng/lttng-tools_2.4.0.bbappend
Normal file
2
core/recipes-kernel/lttng/lttng-tools_2.4.0.bbappend
Normal file
@@ -0,0 +1,2 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
||||
SRC_URI_append_arm = " file://compile-consumers-with-o1.patch"
|
||||
Reference in New Issue
Block a user