https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123222

            Bug ID: 123222
           Summary: Typo in __builtin_sub_overflow_p docs
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: web
          Assignee: unassigned at gcc dot gnu.org
          Reporter: blubban at gmail dot com
  Target Milestone: ---

https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html#index-_005f_005fbuiltin_005fadd_005foverflow_005fp

> Built-in Function: bool __builtin_add_overflow_p (type1 a, type2 b, type3 c)
> Built-in Function: bool __builtin_sub_overflow_p (type1 a, type2 b, type3 c)
> Built-in Function: bool __builtin_mul_overflow_p (type1 a, type2 b, type3 c)
> 
> These built-in functions are similar to __builtin_add_overflow,
> __builtin_sub_overflow, or __builtin_mul_overflow, [...]
> 
> The built-in functions promote the first two operands into infinite
> precision signed type and perform addition on those promoted operands. [...]
s/addition/the corresponding operation/ (or another wording, your choice)

Reply via email to