diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2014-11-19 03:37:34 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2014-11-19 03:37:34 +0000 |
commit | 26c87b1a648dce3764f9efdb56c75dcf953413c5 (patch) | |
tree | a6120a0452ca223e03bdc9533a07859c02b56829 /gcc/attribs.c | |
parent | 052beba43fcefe280c617045f03dfe37fcd5b81a (diff) | |
download | gcc-26c87b1a648dce3764f9efdb56c75dcf953413c5.zip gcc-26c87b1a648dce3764f9efdb56c75dcf953413c5.tar.gz gcc-26c87b1a648dce3764f9efdb56c75dcf953413c5.tar.bz2 |
attribs.c (decl_attributes): Remove always true condition, TREE_TYPE(x) will never compare equal to a TYPE_DECL.
2014-11-18 Andrew MacLeod <amacleod@redhat.com>
* attribs.c (decl_attributes): Remove always true condition,
TREE_TYPE(x) will never compare equal to a TYPE_DECL.
From-SVN: r217750
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r-- | gcc/attribs.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c index 427a0f6..fe84703 100644 --- a/gcc/attribs.c +++ b/gcc/attribs.c @@ -502,11 +502,7 @@ decl_attributes (tree *node, tree attributes, int flags) if (spec->type_required && DECL_P (*anode)) { anode = &TREE_TYPE (*anode); - /* Allow ATTR_FLAG_TYPE_IN_PLACE for the type's naming decl. */ - if (!(TREE_CODE (*anode) == TYPE_DECL - && *anode == TYPE_NAME (TYPE_MAIN_VARIANT - (TREE_TYPE (*anode))))) - flags &= ~(int) ATTR_FLAG_TYPE_IN_PLACE; + flags &= ~(int) ATTR_FLAG_TYPE_IN_PLACE; } if (spec->function_type_required && TREE_CODE (*anode) != FUNCTION_TYPE |