diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-01 06:35:08 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-01 06:35:08 +0000 |
commit | a30fe044170c44da9e441535e2167ca8e885b3cb (patch) | |
tree | 2ebaaed9567b6d2c562b45ef1d92bcb5cb136795 /gcc/attribs.c | |
parent | ddda25955ee583217ccbd7ad5c33c6bb9f304649 (diff) | |
download | gcc-a30fe044170c44da9e441535e2167ca8e885b3cb.tar.gz |
2008-09-01 Basile Starynkevitch <basile@starynkevitch.net>
MERGED WITH TRUNK rev139820
* gcc/melt/warmelt-first.bysl: added location argument to inform.
* gcc/warmelt-first-0.c: regenerated.
* gcc/warmelt-macro-0.c: regenerated.
* gcc/warmelt-normal-0.c: regenerated.
* gcc/warmelt-genobj-0.c: regenerated.
* gcc/warmelt-outobj-0.c: regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@139849 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)); } |