Bug#609217: gcc-4.4-doc: misleading __builtin_choose_expr documentation error
Package: gcc-4.4-doc
Version: 4.4.4.nf1-1
Severity: normal
The GCC 4.4 manual says:
-- Built-in Function: TYPE __builtin_choose_expr (CONST_EXP, EXP1,
EXP2)
You can use the built-in function `__builtin_choose_expr' to
evaluate code depending on the value of a constant expression.
This built-in function returns EXP1 if CONST_EXP, which is a
constant expression that must be able to be determined at compile
time, is nonzero. Otherwise it returns 0.
This is incorrect. "Otherwise it returns 0." should be replaced
by "Otherwise it returns EXP2.".
This error has been known since 2006:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28575
but it still isn't fixed, though the change is trivial. I hope that
Debian would be more reactive than upstream...
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gcc-4.4-doc depends on:
ii dpkg 1.15.8.8 Debian package management system
ii gcc-doc-base 4.4.4.nf1-1 several GNU manual pages
ii install-info 4.13a.dfsg.1-6 Manage installed documentation in
gcc-4.4-doc recommends no packages.
Versions of packages gcc-4.4-doc suggests:
ii doc-base 0.9.5 utilities to manage online documen
-- no debconf information
Reply to: