From: amacleod Date: Wed, 19 Nov 2014 03:37:34 +0000 (+0000) Subject: 2014-11-18 Andrew MacLeod X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0dc530832b05a89ee2570131eac1b2a05a9ab4e;p=thirdparty%2Fgcc.git 2014-11-18 Andrew MacLeod * attribs.c (decl_attributes): Remove always true condition, TREE_TYPE(x) will never compare equal to a TYPE_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217750 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5072b44f8ff3..7dcfba38c5ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-11-18 Andrew MacLeod + + * attribs.c (decl_attributes): Remove always true condition, + TREE_TYPE(x) will never compare equal to a TYPE_DECL. + 2014-11-18 James Greenhalgh PR target/63937 diff --git a/gcc/attribs.c b/gcc/attribs.c index 427a0f63f3d4..fe8470348979 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