Public headers: use SPDX identifiers
[urcu.git] / include / urcu / arch / aarch64.h
index e1925b30ddbc0018456228323c3d274581897fa4..f573306a05450d80c7b4548852f7bfa50f03daf3 100644 (file)
@@ -1,25 +1,13 @@
+// SPDX-FileCopyrightText: 2010 Paul E. McKenney, IBM Corporation.
+// SPDX-FileCopyrightText: 2009-2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
 #ifndef _URCU_ARCH_AARCH64_H
 #define _URCU_ARCH_AARCH64_H
 
 /*
  * arch/aarch64.h: definitions for aarch64 architecture
- *
- * Copyright (c) 2010 Paul E. McKenney, IBM Corporation.
- * Copyright (c) 2009-2015 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; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * 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 <urcu/compiler.h>
@@ -44,9 +32,17 @@ extern "C" {
 
 /*
  * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63293
+ *
+ * Backported in RHEL7 gcc 4.8.5-11
  */
+#if defined(URCU_GCC_VERSION) && defined(__GNUC_RH_RELEASE__)
+# if (URCU_GCC_VERSION == 40805) && (__GNUC_RH_RELEASE__ >= 11)
+#  define URCU_GCC_PATCHED_63293
+# endif
+#endif
+
 #ifdef URCU_GCC_VERSION
-# if URCU_GCC_VERSION < 50100
+# if URCU_GCC_VERSION < 50100 && !defined(URCU_GCC_PATCHED_63293)
 #  error Your gcc version performs unsafe access to deallocated stack
 # endif
 #endif
This page took 0.023223 seconds and 4 git commands to generate.