From: Andrew Carlotti Date: Fri, 16 Dec 2022 15:14:35 +0000 (+0000) Subject: docs: Fix inconsistent example predicate name X-Git-Tag: basepoints/gcc-14~2358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27afe64c1939ddaab90f730e67243b2495eedd7e;p=thirdparty%2Fgcc.git docs: Fix inconsistent example predicate name 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. gcc/ChangeLog: * doc/md.texi: Fix inconsistent example name. --- diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 78dc6d720700..cc28f868fc85 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; @{