summaryrefslogtreecommitdiff
path: root/gcc/langhooks.h
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>2008-08-30 23:50:40 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2008-08-30 23:50:40 +0000
commit5779e7133d84c5873249bb643d9852f314022f0b (patch)
treeb3ee120a2ecf25d00fba24415c8566f83135a110 /gcc/langhooks.h
parent0257eee5bd4700647061f61b13a2f89b2a4b4f28 (diff)
downloadgcc-5779e7133d84c5873249bb643d9852f314022f0b.tar.gz
Change attribute((option(...))) to attribute((target(...))); Do not allocate tree nodes on x86 for builtins until we generate code for the ISA; Delete hot/cold functions changing optimization; Make C++ support target specific functions; Add #pragma GCC {push_options,pop_options,reset_options} instead of #pragma GCC {target,optimize} {push,reset,pop}
From-SVN: r139812
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r--gcc/langhooks.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h
index 6a23a313f35..a10ce482f5c 100644
--- a/gcc/langhooks.h
+++ b/gcc/langhooks.h
@@ -410,6 +410,14 @@ struct lang_hooks
/* Do language specific processing in the builtin function DECL */
tree (*builtin_function) (tree decl);
+ /* Like builtin_function, but make sure the scope is the external scope.
+ This is used to delay putting in back end builtin functions until the ISA
+ that defines the builtin is declared via function specific target options,
+ which can save memory for machines like the x86_64 that have multiple
+ ISAs. If this points to the same function as builtin_function, the
+ backend must add all of the builtins at program initialization time. */
+ tree (*builtin_function_ext_scope) (tree decl);
+
/* Used to set up the tree_contains_structure array for a frontend. */
void (*init_ts) (void);
@@ -429,4 +437,10 @@ extern tree add_builtin_function (const char *name, tree type,
const char *library_name,
tree attrs);
+extern tree add_builtin_function_ext_scope (const char *name, tree type,
+ int function_code,
+ enum built_in_class cl,
+ const char *library_name,
+ tree attrs);
+
#endif /* GCC_LANG_HOOKS_H */