diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-08-12 09:42:58 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-08-12 09:42:58 +0200 |
commit | 8441841a1b985d68245954af1ff023db121b0635 (patch) | |
tree | 82fa873f8a85aaa865b91ecf5c8fba8ae8611ceb /gcc/tree-cfg.cc | |
parent | 9890f377013cf1e4f5b9fab8a7287a5380dade1f (diff) | |
download | gcc-8441841a1b985d68245954af1ff023db121b0635.zip gcc-8441841a1b985d68245954af1ff023db121b0635.tar.gz gcc-8441841a1b985d68245954af1ff023db121b0635.tar.bz2 |
Add stdckdint.h header for C23
This patch adds <stdckdint.h> header, which defines ckd_{add,sub,mul}
using __builtin_{add,sub,mul}_overflow. As requested, it doesn't
pedantically diagnose things which work just fine, e.g. inputs with
plain char, bool, bit-precise integer or enumerated types and
result pointer to plain char or bit-precise integer.
The header will #include_next <stdckdint.h> so that C library can supply
its part if the header implementation in the future needs to be split
between parts under the control of the compiler and parts under the
control of C library.
2023-08-12 Jakub Jelinek <jakub@redhat.com>
* Makefile.in (USER_H): Add stdckdint.h.
* ginclude/stdckdint.h: New file.
* gcc.dg/stdckdint-1.c: New test.
* gcc.dg/stdckdint-2.c: New test.
Diffstat (limited to 'gcc/tree-cfg.cc')
0 files changed, 0 insertions, 0 deletions