diff options
author | Michael Meissner <gnu@the-meissners.org> | 2008-08-30 23:50:40 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2008-08-30 23:50:40 +0000 |
commit | 5779e7133d84c5873249bb643d9852f314022f0b (patch) | |
tree | b3ee120a2ecf25d00fba24415c8566f83135a110 /gcc/attribs.c | |
parent | 0257eee5bd4700647061f61b13a2f89b2a4b4f28 (diff) | |
download | gcc-5779e7133d84c5873249bb643d9852f314022f0b.zip gcc-5779e7133d84c5873249bb643d9852f314022f0b.tar.gz gcc-5779e7133d84c5873249bb643d9852f314022f0b.tar.bz2 |
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/attribs.c')
-rw-r--r-- | gcc/attribs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c index ba6a9e2..dbce181 100644 --- a/gcc/attribs.c +++ b/gcc/attribs.c @@ -252,18 +252,18 @@ decl_attributes (tree *node, tree attributes, int flags) && !DECL_FUNCTION_SPECIFIC_OPTIMIZATION (*node)) DECL_FUNCTION_SPECIFIC_OPTIMIZATION (*node) = optimization_current_node; - /* If this is a function and the user used #pragma GCC option, add the - options to the attribute((option(...))) list. */ + /* If this is a function and the user used #pragma GCC target, add the + options to the attribute((target(...))) list. */ if (TREE_CODE (*node) == FUNCTION_DECL - && current_option_pragma + && current_target_pragma && targetm.target_option.valid_attribute_p (*node, NULL_TREE, - current_option_pragma, 0)) + current_target_pragma, 0)) { - tree cur_attr = lookup_attribute ("option", attributes); - tree opts = copy_list (current_option_pragma); + tree cur_attr = lookup_attribute ("target", attributes); + tree opts = copy_list (current_target_pragma); if (! cur_attr) - attributes = tree_cons (get_identifier ("option"), opts, attributes); + attributes = tree_cons (get_identifier ("target"), opts, attributes); else TREE_VALUE (cur_attr) = chainon (opts, TREE_VALUE (cur_attr)); } |