public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kevin.waugh at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/46073] __builtin_choose_expr outputs warnings for unused expression Date: Mon, 18 Oct 2010 19:17:00 -0000 [thread overview] Message-ID: <20101018191700.Xe3iX-imy43QqZMCRmBY5n5wP_Ffwj46M_OkhNbiU30@z> (raw) In-Reply-To: <bug-46073-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46073 --- Comment #2 from kevin.waugh at gmail dot com 2010-10-18 19:17:17 UTC --- (In reply to comment #1) > I think this is correct as __builtin_choose_expr still does semantically > checking on the two arguments. Not to mention __builtin_choose_expr was added > only to support Altivec intrinsics and that has since been moved away from > that. >From the documentation: Note: This construct is only available for C. Furthermore, the unused expression (exp1 or exp2 depending on the value of const_exp) may still generate syntax errors. This may change in future revisions. What are the chances of getting this changed, or having an option to suppress warnings on the unevaluated argument? The implementation of tgmath.h is essentially using __builtin_choose_expr for the same purpose, but it appers to avoid any warnings/errors because of implicit casts.
next prev parent reply other threads:[~2010-10-18 19:17 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-18 18:57 [Bug c/46073] New: " kevin.waugh at gmail dot com 2010-10-18 19:01 ` [Bug c/46073] " pinskia at gcc dot gnu.org 2010-10-18 19:17 ` kevin.waugh at gmail dot com [this message] 2010-10-18 19:55 ` joseph at codesourcery dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20101018191700.Xe3iX-imy43QqZMCRmBY5n5wP_Ffwj46M_OkhNbiU30@z \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).