public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/62241] C++14 generalized lambda capture doesn't work with uniform initialization syntax. Date: Tue, 26 Aug 2014 21:48:00 -0000 [thread overview] Message-ID: <bug-62241-4-z9TTr8SFmn@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-62241-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62241 Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #5 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- (In reply to Andrew Pinski from comment #2) > Have you tried 5.x yet? Trying 5.0.0 20140826 (experimental) the outcome is still the same rejection >From gcc-bugs-return-459313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 26 21:59:54 2014 Return-Path: <gcc-bugs-return-459313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6457 invoked by alias); 26 Aug 2014 21:59:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6398 invoked by uid 48); 26 Aug 2014 21:59:50 -0000 From: "carrot at google dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/62262] aarch64 gcc generates invalid assembler Date: Tue, 26 Aug 2014 21:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carrot at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-62262-4-mM8YNfPDdT@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-62262-4@http.gcc.gnu.org/bugzilla/> References: <bug-62262-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg01810.txt.bz2 Content-length: 1188 https://gcc.gnu.org/bugzilla/show_bug.cgi?idb262 --- Comment #5 from Carrot <carrot at google dot com> --- (In reply to amker from comment #2) > (In reply to Andrew Pinski from comment #1) > > (insn 27 26 40 5 (set (reg:SI 73 [ D.2590 ]) > > (and:SI (ashift:SI (reg/v:SI 74 [ value ]) > > (const_int 32 [0x20])) > > (const_int 8388607 [0x7fffff]))) t7.c:13 611 > > {*andim_ashiftsi_bfiz} > > (expr_list:REG_DEAD (reg/v:SI 74 [ value ]) > > (nil))) > > > > Confirmed. > > > > "exact_log2 ((INTVAL (operands[3]) >> INTVAL (operands[2])) + 1) >= 0 > > && (INTVAL (operands[3]) & ((1 << INTVAL (operands[2])) - 1)) == 0" > > > > > > In fact we invoke undefined behavior inside the compiler too due to the > > shift there. > > Since it's undefined code, how should we handle it in GCC? Should we give > warning messages as accurate as possible? But that sounds impractical > either, since "value << 1" and "value <<= zeros" could be undefined too. Actually the original source code is guarded by assert, and the parameter passed to CLZ can be guaranteed not 0, so "value <<= zeros" is well defined in our original source code.
next prev parent reply other threads:[~2014-08-26 21:48 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-08-23 18:42 [Bug c++/62241] New: " 0xd34df00d at gmail dot com 2014-08-23 18:43 ` [Bug c++/62241] " 0xd34df00d at gmail dot com 2014-08-23 18:54 ` pinskia at gcc dot gnu.org 2014-08-23 19:00 ` 0xd34df00d at gmail dot com 2014-08-23 19:03 ` 0xd34df00d at gmail dot com 2014-08-26 21:48 ` daniel.kruegler at googlemail dot com [this message] 2014-12-14 0:06 ` ville.voutilainen at gmail dot com 2015-01-20 11:59 ` paolo.carlini at oracle dot com 2015-01-20 11:59 ` paolo at gcc dot gnu.org
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=bug-62241-4-z9TTr8SFmn@http.gcc.gnu.org/bugzilla/ \ --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).