Blacklist ARM gcc 4.8.0, 4.8.1, 4.8.2
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 24 Nov 2013 08:28:10 +0000 (03:28 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 24 Nov 2013 08:29:15 +0000 (03:29 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-tracer.h
wrapper/compiler.h [new file with mode: 0644]

index b913761e47060ef784a24751b782beb1e7904986..aba10bad9493aa0774b419c7e4544b4e96c3168a 100644 (file)
@@ -35,6 +35,7 @@
 #include <asm/local.h>
 
 #include "wrapper/trace-clock.h"
+#include "wrapper/compiler.h"
 #include "lttng-tracer-core.h"
 #include "lttng-events.h"
 
diff --git a/wrapper/compiler.h b/wrapper/compiler.h
new file mode 100644 (file)
index 0000000..bd69fad
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef _LTTNG_WRAPPER_COMPILER_H
+#define _LTTNG_WRAPPER_COMPILER_H
+
+/*
+ * wrapper/compiler.h
+ *
+ * Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; only
+ * version 2.1 of the License.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include <linux/compiler.h>
+
+/*
+ * Don't allow compiling with buggy compiler.
+ */
+
+/*
+ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854
+ */
+#ifdef __ARMEL__
+# if GCC_VERSION >= 40800 && GCC_VERSION <= 40802
+#  error Your gcc version produces clobbered frame accesses
+# endif
+#endif
+
+#endif /* _LTTNG_WRAPPER_COMPILER_H */
This page took 0.025372 seconds and 4 git commands to generate.