aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorWalter Lee <walt@tilera.com>2014-01-25 20:37:01 +0000
committerWalter Lee <walt@gcc.gnu.org>2014-01-25 20:37:01 +0000
commita5420aa44e7f5ebf87e238226b50cd78e9f82ea9 (patch)
treee1f957da9b8304e32cb5d91db38d0665df565db1 /libgcc
parent24534912f71bd6064554ed73702820528a7fe678 (diff)
downloadgcc-a5420aa44e7f5ebf87e238226b50cd78e9f82ea9.zip
gcc-a5420aa44e7f5ebf87e238226b50cd78e9f82ea9.tar.gz
gcc-a5420aa44e7f5ebf87e238226b50cd78e9f82ea9.tar.bz2
atomic.c: Include tconfig.h.
2014-01-25 Walter Lee <walt@tilera.com> * config/tilepro/atomic.c: Include tconfig.h. Don't include config.h or system.h. (bool) Define. From-SVN: r207088
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog6
-rw-r--r--libgcc/config/tilepro/atomic.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 48253b2..845c8f4 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,5 +1,11 @@
2014-01-25 Walter Lee <walt@tilera.com>
+ * config/tilepro/atomic.c: Include tconfig.h. Don't include
+ config.h or system.h.
+ (bool) Define.
+
+2014-01-25 Walter Lee <walt@tilera.com>
+
* config/tilepro/atomic.c (pre_atomic_barrier): Mark inline.
(post_atomic_barrier): Ditto.
(__fetch_and_do): New macro.
diff --git a/libgcc/config/tilepro/atomic.c b/libgcc/config/tilepro/atomic.c
index 2df73b5..66ef8fd 100644
--- a/libgcc/config/tilepro/atomic.c
+++ b/libgcc/config/tilepro/atomic.c
@@ -21,11 +21,12 @@
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
-#include "config.h"
-#include "system.h"
+#include "tconfig.h"
#include "coretypes.h"
#include "atomic.h"
+#define bool unsigned char
+
/* This code should be inlined by the compiler, but for now support
it as out-of-line methods in libgcc. */