gcc-13-20230212 is now available

2023-02-12 Thread GCC Administrator via Gcc
Snapshot gcc-13-20230212 is now available on https://gcc.gnu.org/pub/gcc/snapshots/13-20230212/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 13 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

__builtin_(add|mul)_overflow methods generate duplicate operations if both operands are const

2023-02-12 Thread David Shane Holden via Gcc
I requested a bugzilla account a few days ago and haven't heard back so I'm just going to report this here. #include #include #include bool add(uint8_t *r, const uint8_t *a, const uint8_t *b) { return __builtin_add_overflow(*a, *b, r); } bool mul(uint8_t *r, const uint8_t *a, const uint8_t