mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
052beba43f
commit
26c87b1a64
|
|
@ -1,3 +1,8 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
|
2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
|
||||||
|
|
||||||
PR target/63937
|
PR target/63937
|
||||||
|
|
|
||||||
|
|
@ -502,11 +502,7 @@ decl_attributes (tree *node, tree attributes, int flags)
|
||||||
if (spec->type_required && DECL_P (*anode))
|
if (spec->type_required && DECL_P (*anode))
|
||||||
{
|
{
|
||||||
anode = &TREE_TYPE (*anode);
|
anode = &TREE_TYPE (*anode);
|
||||||
/* Allow ATTR_FLAG_TYPE_IN_PLACE for the type's naming decl. */
|
flags &= ~(int) ATTR_FLAG_TYPE_IN_PLACE;
|
||||||
if (!(TREE_CODE (*anode) == TYPE_DECL
|
|
||||||
&& *anode == TYPE_NAME (TYPE_MAIN_VARIANT
|
|
||||||
(TREE_TYPE (*anode)))))
|
|
||||||
flags &= ~(int) ATTR_FLAG_TYPE_IN_PLACE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spec->function_type_required && TREE_CODE (*anode) != FUNCTION_TYPE
|
if (spec->function_type_required && TREE_CODE (*anode) != FUNCTION_TYPE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue