aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-11-22 22:58:07 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2007-11-22 22:58:07 +0100
commitebfe65a3be8a7b694970236b214d5d1f1d3d3312 (patch)
treec93d6970c6daca6847aa82c201b4f472859a8280 /gcc
parentd4d757e6b5d3d66ea683f53d6f65e7718d4df6b4 (diff)
downloadgcc-ebfe65a3be8a7b694970236b214d5d1f1d3d3312.zip
gcc-ebfe65a3be8a7b694970236b214d5d1f1d3d3312.tar.gz
gcc-ebfe65a3be8a7b694970236b214d5d1f1d3d3312.tar.bz2
re PR target/33947 (warning: 'const' attribute directive ignored)
PR target/33947 * config/arm/arm.c (arm_init_tls_builtins): Set TREE_NOTHROW and TREE_READONLY on the fn decl rather than passing a chain of attributes. From-SVN: r130359
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/arm/arm.c12
2 files changed, 13 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2270e80..7f9f809 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2007-11-22 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/33947
+ * config/arm/arm.c (arm_init_tls_builtins): Set TREE_NOTHROW
+ and TREE_READONLY on the fn decl rather than passing a chain
+ of attributes.
+
2007-11-22 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.md (divsi_inv_m3): Handle zero dividend
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index f09606c..808a600 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -14488,14 +14488,14 @@ arm_init_iwmmxt_builtins (void)
static void
arm_init_tls_builtins (void)
{
- tree ftype;
- tree nothrow = tree_cons (get_identifier ("nothrow"), NULL, NULL);
- tree const_nothrow = tree_cons (get_identifier ("const"), NULL, nothrow);
+ tree ftype, decl;
ftype = build_function_type (ptr_type_node, void_list_node);
- add_builtin_function ("__builtin_thread_pointer", ftype,
- ARM_BUILTIN_THREAD_POINTER, BUILT_IN_MD,
- NULL, const_nothrow);
+ decl = add_builtin_function ("__builtin_thread_pointer", ftype,
+ ARM_BUILTIN_THREAD_POINTER, BUILT_IN_MD,
+ NULL, NULL_TREE);
+ TREE_NOTHROW (decl) = 1;
+ TREE_READONLY (decl) = 1;
}
typedef enum {