This fixes the copy-and-pasto for these builtins.
Basically the documentation currently says "addition" as that was copied from
__builtin_add_overflow documentation but really it should say corresponding
operation
instead.
Pushed as obvious.
PR middle-end/123222
gcc/ChangeLog:
* doc/extend.texi: Fix copy-and-pasto for __builtin_*_overflow_p.
Signed-off-by: Andrew Pinski <[email protected]>
---
gcc/doc/extend.texi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 9fba65dfdd9..d7fdea53ad6 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -16318,7 +16318,7 @@ last argument is not a pointer, but some expression
with integral type other
than enumerated or boolean type.
The built-in functions promote the first two operands into infinite precision
signed type
-and perform addition on those promoted operands. The result is then
+and perform the corresponding operation on those promoted operands. The result
is then
cast to the type of the third argument. If the cast result is equal to the
infinite
precision result, the built-in functions return @code{false}, otherwise they
return @code{true}.
The value of the third argument is ignored, just the side effects in the third
argument
--
2.43.0