summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2017-09-29 21:06:28 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2017-09-29 21:06:28 +0000
commitdb967b088ec35da44e8dd0d3e406dea82c4e5cd6 (patch)
treedf77fa74713b05747ad582f73635dde3239c206e
parent8360e5df43851a2c07199b30333f03d06c3589bf (diff)
downloadgcc-db967b088ec35da44e8dd0d3e406dea82c4e5cd6.tar.gz
* c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
attribute. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253308 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-attribs.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index e2b73c8907c..3c4bd054e21 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -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.
diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c-attribs.c
index 1821d3e52bc..4e6754fba20 100644
--- a/gcc/c-family/c-attribs.c
+++ b/gcc/c-family/c-attribs.c
@@ -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;
}