diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-09-29 23:06:28 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-09-29 23:06:28 +0200 |
commit | 01c9fb68653b1b433b5eb20d78b9d36835783b17 (patch) | |
tree | df77fa74713b05747ad582f73635dde3239c206e /gcc | |
parent | b09bf97bcd51adcc554e21213cd4159db95805a3 (diff) | |
download | gcc-01c9fb68653b1b433b5eb20d78b9d36835783b17.zip gcc-01c9fb68653b1b433b5eb20d78b9d36835783b17.tar.gz gcc-01c9fb68653b1b433b5eb20d78b9d36835783b17.tar.bz2 |
c-attribs.c (handle_noipa_attribute): Don't add "stack_protect" attribute.
* c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
attribute.
From-SVN: r253308
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-attribs.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index e2b73c8..3c4bd05 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 1821d3e..4e6754f 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; } |