c-attribs.c (handle_noipa_attribute): Don't add "stack_protect" attribute.
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Sep 2017 21:06:28 +0000 (23:06 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Sep 2017 21:06:28 +0000 (23:06 +0200)
* c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
attribute.

From-SVN: r253308

gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c

index e2b73c8907ca9b34d08e7b0a6af47037efa25d75..3c4bd054e21e87a22d159f3485b563aa7d54eccc 100644 (file)
@@ -1,3 +1,8 @@
+2017-09-29  Jakub Jelinek  <jakub@redhat.com>
+
+       * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
+       attribute.
+
 2017-09-29  Eric Botcazou  <ebotcazou@adacore.com>
 
        * c-ada-spec.c (to_ada_name): Add index parameter.
index 1821d3e52bccde54e5d950aea13add447d61ab25..4e6754fba2002a3a7ce6355317702a966e20c231 100644 (file)
@@ -730,10 +730,6 @@ handle_noipa_attribute (tree *node, tree name, tree, int, bool *no_add_attrs)
       warning (OPT_Wattributes, "%qE attribute ignored", name);
       *no_add_attrs = true;
     }
-  else
-    DECL_ATTRIBUTES (*node)
-      = tree_cons (get_identifier ("stack_protect"),
-                  NULL_TREE, DECL_ATTRIBUTES (*node));
 
   return NULL_TREE;
 }