public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: GCC 11 backports
Date: Tue, 18 Jan 2022 14:26:25 +0100	[thread overview]
Message-ID: <3a433566-4b2a-2201-52ec-0bf8ee4d5a1e@suse.cz> (raw)
In-Reply-To: <fec26bb0-cf24-d50a-0862-453714356073@suse.cz>

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

On 12/16/21 12:46, Martin Liška wrote:
> On 11/8/21 13:26, Martin Liška wrote:
>> On 11/5/21 17:08, Martin Liška wrote:
>>> On 8/23/21 10:54, Martin Liška wrote:
>>>> On 8/16/21 13:13, Martin Liška wrote:
>>>>> I'm going to apply the following 3 tested patches.
>>>>>
>>>>> Martin
>>>>
>>>> One more patch I've just tested.
>>>>
>>>> Martin
>>>
>>> And one more backport.
>>>
>>> Martin
>>
>> One more tested patch.
>>
>> Martin
> 
> And one more tested patch.
> 
> Martin

One more patch.

Martin

[-- Attachment #2: 0001-ipa-naked-attribute-implies-noipa-attribute.patch --]
[-- Type: text/x-patch, Size: 1466 bytes --]

From b76e938a192da0da198d2f414070182f2506508d Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Thu, 12 Aug 2021 17:26:51 +0200
Subject: [PATCH] ipa: "naked" attribute implies "noipa" attribute

	PR ipa/101354

gcc/ChangeLog:

	* attribs.c (decl_attributes): Make naked functions "noipa"
	  functions.

(cherry picked from commit 4998404915bba9cb04c438a926cdf7126782a767)
---
 gcc/attribs.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/gcc/attribs.c b/gcc/attribs.c
index ebc0783c439..47969bd7742 100644
--- a/gcc/attribs.c
+++ b/gcc/attribs.c
@@ -520,14 +520,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.  */
-- 
2.34.1


      reply	other threads:[~2022-01-18 13:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-16 11:13 Martin Liška
2021-08-23  8:54 ` Martin Liška
2021-11-05 16:08   ` Martin Liška
2021-11-08 12:26     ` Martin Liška
2021-12-16 11:46       ` Martin Liška
2022-01-18 13:26         ` Martin Liška [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3a433566-4b2a-2201-52ec-0bf8ee4d5a1e@suse.cz \
    --to=mliska@suse.cz \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).