[PATCH] middle-end: Fix typo in gimple.h

2025-07-13 Thread Benjamin Wu
2025-07-13  Ben Wu  

* gimple.h (GTMA_DOES_GO_IRREVOCABLE): Fix typo.

Tested on x86_64-pc-linux-gnu. Will someone be able to commit this typo fix for 
me?

Thanks!

---
  7  gcc/ChangeLog | 4 
  8  gcc/gimple.h  | 2 +-
  9  2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 711d0409f00..9a6a17d9eef 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2025-07-13  Ben Wu  
+
+* gimple.h (GTMA_DOES_GO_IRREVOCABLE): Fix typo.
+
 2025-07-12  Jan Hubicka  

  * auto-profile.cc (function_instance::~function_instance):
diff --git a/gcc/gimple.h b/gcc/gimple.h
index 268884677e1..5c970cee7e6 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -865,7 +865,7 @@ struct GTY((tag("GSS_ASSUME")))
tell the runtime that it should begin the transaction in
serial-irrevocable mode.  */
 #define GTMA_DOES_GO_IRREVOCABLE   (1u << 6)
-/* The transaction contains no instrumentation code whatsover, most
+/* The transaction contains no instrumentation code whatsoever, most
likely because it is guaranteed to go irrevocable upon entry.  */
 #define GTMA_HAS_NO_INSTRUMENTATION  (1u << 7)

--
2.43.0


[PATCH] c++ frontend: Fix typo in comment

2025-07-16 Thread Benjamin Wu
Fixes typo in lex.cc. Could someone help commit?

gcc/cp/ChangeLog:

  * lex.cc (init_operators): Fix typo.

---
 gcc/cp/lex.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/lex.cc b/gcc/cp/lex.cc
index 08a634830f5..053d0ee0647 100644
--- a/gcc/cp/lex.cc
+++ b/gcc/cp/lex.cc
@@ -172,7 +172,7 @@ init_operators (void)
   /* This loop iterates backwards because we need to move the
  assignment operators down to their correct slots.  I.e. morally
  equivalent to an overlapping memmove where dest > src.  Slot
- zero is for error_mark, so hae no operator. */
+ zero is for error_mark, so has no operator. */
   for (unsigned ix = OVL_OP_MAX; --ix;)
 {
   ovl_op_info_t *op_ptr = &ovl_op_info[false][ix];
--
2.43.0