[cfe-commits] [Review] Adding a sig_atomic_t type to TargetInfo

Ken Dyck Ken.Dyck at onsemi.com
Fri Nov 20 06:56:38 PST 2009


The enclosed patch adds a new SigAtomicType to TargetInfo with the
intention of eventually using it to specify values for SIG_ATOMIC_MAX
and SIG_ATOMIC_MIN in clang's stdint.h. 

Currently, clang's stdint.h assumes that sig_atomic_t is a 32-bit signed
integer type on every target. This patch maintains that assumption. The
default type is 'signed int', which is 32-bits wide on all the supported
architectures except MSP430 and PIC16. On these, the default is
overridden with their 32-bit 'signed long int' type.

Reviews, comments appreciated. 

-Ken


-------------- next part --------------
A non-text attachment was scrubbed...
Name: TargetInfo-sig-atomic-type.r89384.patch
Type: application/octet-stream
Size: 2080 bytes
Desc: TargetInfo-sig-atomic-type.r89384.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091120/e03a65b1/attachment.obj>


More information about the cfe-commits mailing list