public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: gcc-patches@gcc.gnu.org
Cc: Jan Hubicka <hubicka@ucw.cz>
Subject: [OBVIOUS][PATCH] Fix typo in a warning related to flatten.
Date: Sun, 29 Mar 2020 19:24:12 +0200	[thread overview]
Message-ID: <9e510eb9-c5a4-e8ca-eade-f6cf5d7c881e@suse.cz> (raw)

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

Hi.

I'm sending a typo fix in the flatten warning.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Thanks,
Martin

gcc/ChangeLog:

2020-03-29  Martin Liska  <mliska@suse.cz>

	PR ipa/94363
	* cgraphunit.c (process_function_and_variable_attributes): Remove
	double 'attribute' words.
---
  gcc/cgraphunit.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)



[-- Attachment #2: 0001-Fix-typo-in-a-warning-related-to-flatten.patch --]
[-- Type: text/x-patch, Size: 554 bytes --]

diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 3415660440e..0e255f25b7d 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -856,8 +856,7 @@ process_function_and_variable_attributes (cgraph_node *first,
 	  && lookup_attribute ("flatten", DECL_ATTRIBUTES (decl)))
 	{
 	  warning_at (DECL_SOURCE_LOCATION (node->decl), OPT_Wattributes,
-		      "%<flatten%>"
-		      " attribute attribute is ignored on aliases");
+		      "%<flatten%> attribute is ignored on aliases");
 	}
       if (DECL_PRESERVE_P (decl))
 	node->mark_force_output ();


                 reply	other threads:[~2020-03-29 17:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=9e510eb9-c5a4-e8ca-eade-f6cf5d7c881e@suse.cz \
    --to=mliska@suse.cz \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    /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).