summaryrefslogtreecommitdiff
path: root/doc/posix-headers
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-09-12 23:46:19 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-09-12 23:46:39 -0700
commitec2b9f27bd3b051e2c6c26705933b395554d0ab9 (patch)
tree20bdba8ed8cc50116baeefb6c9e2a62a71de2a3d /doc/posix-headers
parent29d79d473f52b0ec58f50c95ef782c66fc0ead21 (diff)
downloadgnulib-ec2b9f27bd3b051e2c6c26705933b395554d0ab9.tar.gz
stdint-tests: long long preproc on recent Sun C
* tests/test-stdint.c: Test long long preprocessor constants on Oracle Developer Studio 12.6, where they should work.
Diffstat (limited to 'doc/posix-headers')
-rw-r--r--doc/posix-headers/stdint.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/posix-headers/stdint.texi b/doc/posix-headers/stdint.texi
index 784799b0f2..7f33b20d23 100644
--- a/doc/posix-headers/stdint.texi
+++ b/doc/posix-headers/stdint.texi
@@ -58,8 +58,10 @@ so public header files should avoid these types.
Macros are used instead of typedefs.
@item
Some C preprocessors mishandle constants that do not fit in @code{long int}.
-For example, as of 2007, Sun C mishandles @code{#if LLONG_MIN < 0} on
-a platform with 32-bit @code{long int} and 64-bit @code{long long int}.
+For example, as of 2007, Sun C mishandled @code{#if LLONG_MIN < 0} on
+a platform with 32-bit @code{long int} and 64-bit @code{long long int};
+this bug was fixed on or before Oracle Developer Studio 12.6
+(Sun C 5.15 SunOS_sparc 2017/05/30).
Some older preprocessors mishandle constants ending in @code{LL}.
To work around these problems, compute the value of expressions like
@code{LONG_MAX < LLONG_MAX} at @code{configure}-time rather than at