public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6706] [COMMITTED] Improve coment for the newly added code in ipa-split.
@ 2022-01-18 23:45 Andrew Pinski
0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2022-01-18 23:45 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5ce3c003df29b4a1845936f639f04ff0548ff409
commit r12-6706-g5ce3c003df29b4a1845936f639f04ff0548ff409
Author: Andrew Pinski <apinski@marvell.com>
Date: Tue Jan 18 14:53:45 2022 -0800
[COMMITTED] Improve coment for the newly added code in ipa-split.
It was pointed out to me by Jakub, that the comment in front of
the new code which handles warning/error attribute was not really
understandable. This fixes the comment to be understandable; I
don't know why I wrote the original comment that way even.
Committed as obvious after a quick build.
gcc/ChangeLog:
* ipa-split.cc (visit_bb): Fix comment before the
warning/error attribute checking code.
Diff:
---
gcc/ipa-split.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/ipa-split.cc b/gcc/ipa-split.cc
index 6ca45f3b745..60021bad13c 100644
--- a/gcc/ipa-split.cc
+++ b/gcc/ipa-split.cc
@@ -931,8 +931,8 @@ visit_bb (basic_block bb, basic_block return_bb,
break;
}
- /* Calls that function has either the warning or error
- attribute on it should not be split off into another
+ /* Calls to functions (which have the warning or error
+ attribute on them) should not be split off into another
function. */
if (lookup_attribute ("warning", DECL_ATTRIBUTES (decl))
|| lookup_attribute ("error", DECL_ATTRIBUTES (decl)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-18 23:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 23:45 [gcc r12-6706] [COMMITTED] Improve coment for the newly added code in ipa-split Andrew Pinski
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).