This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
Community source repository for glibc add-on ports branch, master, updated. glibc-2.15-229-g3f83552
- From: cmetcalf at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 May 2012 18:53:03 -0000
- Subject: Community source repository for glibc add-on ports branch, master, updated. glibc-2.15-229-g3f83552
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Community source repository for glibc add-on ports".
The branch, master has been updated
via 3f83552f2ca9b2f2ec311d91570146ca51f99809 (commit)
from 69d8348e5e3da19e8f98c9ea063c45dc72ef7407 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc-ports.git;a=commitdiff;h=3f83552f2ca9b2f2ec311d91570146ca51f99809
commit 3f83552f2ca9b2f2ec311d91570146ca51f99809
Author: Chris Metcalf <cmetcalf@tilera.com>
Date: Thu May 17 18:51:36 2012 +0000
tile: support tilegx32 in stackguard-macros.h
diff --git a/ChangeLog.tile b/ChangeLog.tile
index 51acbc6..52b38b4 100644
--- a/ChangeLog.tile
+++ b/ChangeLog.tile
@@ -1,5 +1,7 @@
2012-05-17 Chris Metcalf <cmetcalf@tilera.com>
+ * sysdeps/tile/stackguard-macros.h: Support tilegx32.
+
* data/c++-types-tilepro-linux-gnu.data: Renamed from
data/c++-types-tile-linux-gnu.data.
* data/c++-types-tilegx-linux-gnu.data: New file.
diff --git a/sysdeps/tile/stackguard-macros.h b/sysdeps/tile/stackguard-macros.h
index 7679c0a..589ea2b 100644
--- a/sysdeps/tile/stackguard-macros.h
+++ b/sysdeps/tile/stackguard-macros.h
@@ -1,6 +1,13 @@
+#include <bits/wordsize.h>
+
#ifdef __tilegx__
-# define STACK_CHK_GUARD \
+# if __WORDSIZE == 64
+# define STACK_CHK_GUARD \
({ uintptr_t x; asm ("addi %0, tp, -16; ld %0, %0" : "=r" (x)); x; })
+# else
+# define STACK_CHK_GUARD \
+ ({ uintptr_t x; asm ("addi %0, tp, -8; ld4s %0, %0" : "=r" (x)); x; })
+# endif
#else
# define STACK_CHK_GUARD \
({ uintptr_t x; asm ("addi %0, tp, -8; lw %0, %0" : "=r" (x)); x; })
-----------------------------------------------------------------------
Summary of changes:
ChangeLog.tile | 2 ++
sysdeps/tile/stackguard-macros.h | 9 ++++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
hooks/post-receive
--
Community source repository for glibc add-on ports