summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-03 03:23:18 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-03 03:23:18 +0000
commitb9b156714c693700360f69a697c6f9643107f970 (patch)
tree05e22e5ba8a5e2fd79767f7411cf1d5e8b09c93b /gcc/c-common.c
parent60cbdf0d53c608230494a4b30a54157cba631178 (diff)
downloadgcc-b9b156714c693700360f69a697c6f9643107f970.tar.gz
* builtin-types.def (BT_SSIZE): New primitive type.
(BT_FN_INT_PTR_CONST_STRING_VALIST_ARG, BT_FN_STRING_CONST_STRING_CONST_STRING_INT, BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR, BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types. * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT, BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON, BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins. * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last few functions that define default attributes using it. * c-common.c (c_common_insert_default_attributes): Do nothing. * doc/extend.texi: Document these "new" builtins. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 8ee29b7a4ea..5dc87d78849 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -4189,27 +4189,8 @@ c_init_attributes (void)
/* Depending on the name of DECL, apply default attributes to it. */
void
-c_common_insert_default_attributes (tree decl)
+c_common_insert_default_attributes (tree decl ATTRIBUTE_UNUSED)
{
- tree name = DECL_NAME (decl);
-
- if (!c_attrs_initialized)
- c_init_attributes ();
-
-#define DEF_ATTR_NULL_TREE(ENUM) /* Nothing needed after initialization. */
-#define DEF_ATTR_INT(ENUM, VALUE)
-#define DEF_ATTR_IDENT(ENUM, STRING)
-#define DEF_ATTR_TREE_LIST(ENUM, PURPOSE, VALUE, CHAIN)
-#define DEF_FN_ATTR(NAME, ATTRS, PREDICATE) \
- if ((PREDICATE) && name == built_in_attributes[(int) NAME]) \
- decl_attributes (&decl, built_in_attributes[(int) ATTRS], \
- ATTR_FLAG_BUILT_IN);
-#include "builtin-attrs.def"
-#undef DEF_ATTR_NULL_TREE
-#undef DEF_ATTR_INT
-#undef DEF_ATTR_IDENT
-#undef DEF_ATTR_TREE_LIST
-#undef DEF_FN_ATTR
}
/* Output a -Wshadow warning MSGCODE about NAME, and give the location