Bug#609217: gcc-4.4-doc: misleading __builtin_choose_expr documentation error

2012-10-26 Thread Guo Yixuan
Control: tag -1 + pending

On Fri, Jan 07, 2011 at 02:21:03PM +0100, Vincent Lefevre wrote:
 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...

Thanks for this report. This is fixed in my git repo. [1]

[1]
http://anonscm.debian.org/gitweb/?p=users/yixuan-guest/gcc-doc.git;a=commitdiff;h=572594b3b697f68a6286ba5f0bfe1a0d1c1fdee5

Cheers,

Guo Yixuan



signature.asc
Description: Digital signature


Bug#609217: gcc-4.4-doc: misleading __builtin_choose_expr documentation error

2011-01-07 Thread Vincent Lefevre
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-1several 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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org