[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
improve clang support (10)
From: |
Bruno Haible |
Subject: |
improve clang support (10) |
Date: |
Sun, 09 Aug 2020 13:14:52 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-186-generic; KDE/5.18.0; x86_64; ; ) |
clang has __builtin_add_overflow and __builtin_sub_overflow, like GCC.
No code changes are needed because:
* The definition of _GL_HAS_BUILTIN_ADD_OVERFLOW in lib/intprops.h works
fine for clang.
* The function size_add_wrapv in lib/glob.c produces identical code with
the __builtin_add_overflow as without. Apparently clang recognizes the
addition-and-comparison pattern.
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- improve clang support (10),
Bruno Haible <=