Commit ebfe65a3 by Jakub Jelinek Committed by Jakub Jelinek

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
parent d4d757e6
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> 2007-11-22 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.md (divsi_inv_m3): Handle zero dividend * config/sh/sh.md (divsi_inv_m3): Handle zero dividend
...@@ -14488,14 +14488,14 @@ arm_init_iwmmxt_builtins (void) ...@@ -14488,14 +14488,14 @@ arm_init_iwmmxt_builtins (void)
static void static void
arm_init_tls_builtins (void) arm_init_tls_builtins (void)
{ {
tree ftype; tree ftype, decl;
tree nothrow = tree_cons (get_identifier ("nothrow"), NULL, NULL);
tree const_nothrow = tree_cons (get_identifier ("const"), NULL, nothrow);
ftype = build_function_type (ptr_type_node, void_list_node); ftype = build_function_type (ptr_type_node, void_list_node);
add_builtin_function ("__builtin_thread_pointer", ftype, decl = add_builtin_function ("__builtin_thread_pointer", ftype,
ARM_BUILTIN_THREAD_POINTER, BUILT_IN_MD, ARM_BUILTIN_THREAD_POINTER, BUILT_IN_MD,
NULL, const_nothrow); NULL, NULL_TREE);
TREE_NOTHROW (decl) = 1;
TREE_READONLY (decl) = 1;
} }
typedef enum { typedef enum {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment