public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] docs: Fix inconsistent example predicate name
@ 2022-12-22 17:06 Andrew Carlotti
  0 siblings, 0 replies; only message in thread
From: Andrew Carlotti @ 2022-12-22 17:06 UTC (permalink / raw)
  To: gcc-patches

It is unclear why the example C function was renamed to
`commutative_integer_operator` as part of ec8e098d in 2004, while the
text and the example md were both left as `commutative_operator`. The
latter name appears to be more accurate, so revert the 2004 change.

Committed as obvious.

gcc/ChangeLog:

	* doc/md.texi: Fix inconsistent example name.

---

diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index 78dc6d720700ca409677e44a34a60d4b7fceb046..cc28f868fc85b5148450548a54d69a39ecc4f03a 100644
--- a/gcc/doc/md.texi
+++ b/gcc/doc/md.texi
@@ -377,7 +377,7 @@ commutative arithmetic operators of RTL and whose mode is @var{mode}:
 
 @smallexample
 int
-commutative_integer_operator (x, mode)
+commutative_operator (x, mode)
      rtx x;
      machine_mode mode;
 @{

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-22 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-22 17:06 [committed] docs: Fix inconsistent example predicate name Andrew Carlotti

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).