diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-30 23:50:40 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-30 23:50:40 +0000 |
commit | 2447005502283065f2232ce09edf1b3c808a1c7f (patch) | |
tree | b3ee120a2ecf25d00fba24415c8566f83135a110 /gcc/attribs.c | |
parent | ac785357337a7e170d547963987890e6284185b0 (diff) | |
download | gcc-2447005502283065f2232ce09edf1b3c808a1c7f.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}
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139812 138bc75d-0d04-0410-961f-82ee72b054a4
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 ba6a9e294c8..dbce1815e68 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)); } |