[COMMITTED] Improve coment for the newly added code in ipa-split.

Message ID 1642549407-17167-1-git-send-email-apinski@marvell.com
State Committed
Headers
Series [COMMITTED] Improve coment for the newly added code in ipa-split. |

Commit Message

Li, Pan2 via Gcc-patches Jan. 18, 2022, 11:43 p.m. UTC
  From: Andrew Pinski <apinski@marvell.com>

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.
---
 gcc/ipa-split.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gcc/ipa-split.cc b/gcc/ipa-split.cc
index 6ca45f3b745..ff11cf34b23 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)))