diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-02-19 09:45:50 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-03-06 00:38:31 +0300 |
commit | 3527f6fb0e5041936c40c749940e2fe0d97a4e15 (patch) | |
tree | e352be7d9c9bc355b9eef9c04285ed7147fc3d04 /src/atomic_ops | |
parent | 001befe25f6987a0bae4e13df3867eaddc647317 (diff) | |
download | libatomic_ops-3527f6fb0e5041936c40c749940e2fe0d97a4e15.tar.gz |
Remove gcc/nios2.h and gcc/riscv.h files, include gcc/generic.h directly
(code refactoring)
* src/Makefile.am (nobase_private_HEADERS): Remove nios2.h, riscv.h
entries.
* src/atomic_ops.h [__GNUC__ && !AO_USE_PTHREAD_DEFS
&& !__INTEL_COMPILER]: Use #elif instead of #endif - #if pairs.
* src/atomic_ops.h [__GNUC__ && !AO_USE_PTHREAD_DEFS
&& !__INTEL_COMPILER && (__nios2__ || __riscv)]: Do not include
gcc/nios2.h and gcc/riscv.h files; gcc/generic.h is included instead.
* src/atomic_ops/sysdeps/gcc/nios2.h: Delete file.
* src/atomic_ops/sysdeps/gcc/riscv.h: Likewise.
Diffstat (limited to 'src/atomic_ops')
-rw-r--r-- | src/atomic_ops/sysdeps/gcc/nios2.h | 14 | ||||
-rw-r--r-- | src/atomic_ops/sysdeps/gcc/riscv.h | 12 |
2 files changed, 0 insertions, 26 deletions
diff --git a/src/atomic_ops/sysdeps/gcc/nios2.h b/src/atomic_ops/sysdeps/gcc/nios2.h deleted file mode 100644 index a1581bd..0000000 --- a/src/atomic_ops/sysdeps/gcc/nios2.h +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (C) 2016 Marek Vasut <marex@denx.de> - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program - * for any purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is granted, - * provided the above notices are retained, and a notice that the code was - * modified is included with the above copyright notice. - */ - -#include "generic.h" diff --git a/src/atomic_ops/sysdeps/gcc/riscv.h b/src/atomic_ops/sysdeps/gcc/riscv.h deleted file mode 100644 index 412c395..0000000 --- a/src/atomic_ops/sysdeps/gcc/riscv.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program - * for any purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is granted, - * provided the above notices are retained, and a notice that the code was - * modified is included with the above copyright notice. - */ - -#include "generic.h" |