public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug web/28575]  New: misleading __builtin_choose_expr documentation error
@ 2006-08-02 18:45 twang at apple dot com
  2006-08-02 18:49 ` [Bug c/28575] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: twang at apple dot com @ 2006-08-02 18:45 UTC (permalink / raw)
  To: gcc-bugs

This documentation error exists for all versions of gcc-3.*, gcc-4.*
documentation.

Relevant links are 
http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Other-Builtins.html
http://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/Other-Builtins.html

The error text is:
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.
should be
--> Otherwise it returns exp2.

This is confusing and misleading for the actual functionailty of the builtin,
it shold be changed.


-- 
           Summary: misleading __builtin_choose_expr documentation error
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: web
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: twang at apple dot com
 GCC build triplet: powerpc-apple-darwin8
  GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28575


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-25 16:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-28575-4@http.gcc.gnu.org/bugzilla/>
2010-11-29 18:24 ` [Bug c/28575] misleading __builtin_choose_expr documentation error przemoc at gmail dot com
2014-03-25 16:30 ` mpolacek at gcc dot gnu.org
2006-08-02 18:45 [Bug web/28575] New: " twang at apple dot com
2006-08-02 18:49 ` [Bug c/28575] " pinskia at gcc dot gnu dot org
2006-08-02 18:51 ` pinskia at gcc dot gnu dot org
2007-09-10 15:49 ` brian at oddchange dot com
2008-04-24 15:05 ` vincent at vinc17 dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).