* [OBVIOUS][PATCH] Fix typo in a warning related to flatten.
@ 2020-03-29 17:24 Martin Liška
0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2020-03-29 17:24 UTC (permalink / raw)
To: gcc-patches; +Cc: Jan Hubicka
[-- 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 ();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-29 17:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-29 17:24 [OBVIOUS][PATCH] Fix typo in a warning related to flatten Martin Liška
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).