From a2533a978c8d03bd108b57ea47aa5f91d373f0f2 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Thu, 20 Mar 2014 11:16:04 -0700 Subject: [PATCH] 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 --- .../compile-consumers-with-o1.patch | 30 +++++++++++++++++++ .../lttng/lttng-tools_2.4.0.bbappend | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 core/recipes-kernel/lttng/lttng-tools/compile-consumers-with-o1.patch create mode 100644 core/recipes-kernel/lttng/lttng-tools_2.4.0.bbappend diff --git a/core/recipes-kernel/lttng/lttng-tools/compile-consumers-with-o1.patch b/core/recipes-kernel/lttng/lttng-tools/compile-consumers-with-o1.patch new file mode 100644 index 0000000..110f653 --- /dev/null +++ b/core/recipes-kernel/lttng/lttng-tools/compile-consumers-with-o1.patch @@ -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 + * Mathieu Desnoyers +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 + * Mathieu Desnoyers +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 + * Mathieu Desnoyers diff --git a/core/recipes-kernel/lttng/lttng-tools_2.4.0.bbappend b/core/recipes-kernel/lttng/lttng-tools_2.4.0.bbappend new file mode 100644 index 0000000..d7581b6 --- /dev/null +++ b/core/recipes-kernel/lttng/lttng-tools_2.4.0.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" +SRC_URI_append_arm = " file://compile-consumers-with-o1.patch"