public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/PR101354-naked-impl-noipa)] ipa: "naked" attribute implies "noipa" attribute
@ 2021-08-12 15:28 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-08-12 15:28 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7dfefeaf24e4558ddd20dbbb0be1326f70fe5f98
commit 7dfefeaf24e4558ddd20dbbb0be1326f70fe5f98
Author: Martin Liska <mliska@suse.cz>
Date: Thu Aug 12 17:26:51 2021 +0200
ipa: "naked" attribute implies "noipa" attribute
PR ipa/101354
gcc/ChangeLog:
* attribs.c (decl_attributes): Make naked functions "noipa"
functions.
Diff:
---
gcc/attribs.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/gcc/attribs.c b/gcc/attribs.c
index afa485ed37d..e149f5b66dd 100644
--- a/gcc/attribs.c
+++ b/gcc/attribs.c
@@ -517,14 +517,9 @@ decl_attributes (tree *node, tree attributes, int flags,
if (TREE_CODE (*node) == FUNCTION_DECL
&& attributes
&& lookup_attribute ("naked", attributes) != NULL
- && lookup_attribute_spec (get_identifier ("naked")))
- {
- if (lookup_attribute ("noinline", attributes) == NULL)
- attributes = tree_cons (get_identifier ("noinline"), NULL, attributes);
-
- if (lookup_attribute ("noclone", attributes) == NULL)
- attributes = tree_cons (get_identifier ("noclone"), NULL, attributes);
- }
+ && lookup_attribute_spec (get_identifier ("naked"))
+ &&(lookup_attribute ("noipa", attributes) == NULL))
+ attributes = tree_cons (get_identifier ("noipa"), NULL, attributes);
/* A "noipa" function attribute implies "noinline", "noclone" and "no_icf"
for those targets that support it. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-12 15:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-12 15:28 [gcc(refs/users/marxin/heads/PR101354-naked-impl-noipa)] ipa: "naked" attribute implies "noipa" attribute Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).