]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
extension: Fix documentation for __builtin_*_overflow_p [PR123222]
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 20 Dec 2025 20:00:36 +0000 (12:00 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 20 Dec 2025 20:05:29 +0000 (12:05 -0800)
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 <andrew.pinski@oss.qualcomm.com>
gcc/doc/extend.texi

index 9fba65dfdd92137a55420f9a7079f68483092825..d7fdea53ad6aace9a96f30ee9358af9a85678834 100644 (file)
@@ -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