From 7ffb4fd2da169e19ace71babd1916e2ec6e6eae2 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 27 Mar 2002 23:16:17 +0000 Subject: Makefile.in (attribs.o): Update. * Makefile.in (attribs.o): Update. * attribs.c: Include langhooks.h. (decl_attributes): Use langhook. * c-decl.c (insert_default_attributes): Rename. * c-tree.h (c_insert_default_attributes): New. * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.h (struct lang_hooks): New hook. * tree.h (insert_default_attributes): Remove. ada: * misc.c (insert_default_attributes): Remove. cp: * cp-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine. * cp-tree.h (cxx_insert_default_attributes): New. * decl.c (insert_default_attributes): Rename. objc: * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine. From-SVN: r51488 --- gcc/langhooks.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/langhooks.h') diff --git a/gcc/langhooks.h b/gcc/langhooks.h index 332ede8..a71f7ec 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -165,6 +165,10 @@ struct lang_hooks Fourth argument is actually an enum expand_modifier. */ rtx (*expand_expr) PARAMS ((tree, rtx, enum machine_mode, int)); + /* Possibly apply default attributes to a function (represented by + a FUNCTION_DECL). */ + void (*insert_default_attributes) PARAMS ((tree)); + /* Hook called by safe_from_p for language-specific tree codes. It is up to the language front-end to install a hook if it has any such codes that safe_from_p needs to know about. Since same_from_p will -- cgit v1.1