public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/43690] [4.3/4.4/4.5 Regression] Internal compiler error detected by avr-gcc. Date: Thu, 08 Apr 2010 15:11:00 -0000 [thread overview] Message-ID: <20100408151143.25654.qmail@sourceware.org> (raw) In-Reply-To: <bug-43690-15825@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from rguenth at gcc dot gnu dot org 2010-04-08 15:11 ------- Well, we have not properly gimplified the invalid function: doit () { char * pk; char * pk.1; char * pk.0; <bb 2>: pk = 0B; <bb 3>: __asm__ __volatile__("nop"::"m" pk); pk = pk + 1; pk.0 = pk; __asm__ __volatile__("nop"::"m" pk.0); pk.1 = pk.0 + 1; pk = pk.1; goto <bb 3>; pk is addressable, so pk + 1 needs to load from pk first. 3.4.x prints t.i: In function `doit': t.i:6: warning: use of memory input without lvalue in asm operand 0 is deprecated t.i:7: warning: use of memory input without lvalue in asm operand 0 is deprecated t.i:6: error: impossible constraint in `asm' t.i:7: error: impossible constraint in `asm' so we ICE on the invalid asm. We also fail to diagnose this with newer compilers (but the gimple verifier triggers with checking enabled). -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|c |middle-end Ever Confirmed|0 |1 GCC build triplet|i486-linux-gnu | GCC host triplet|i486-linux-gnu | GCC target triplet|avr | Keywords| |diagnostic, ice-on-invalid- | |code Known to fail| |4.1.2 4.3.4 4.4.4 4.5.0 | |4.6.0 Known to work| |3.4.6 Last reconfirmed|0000-00-00 00:00:00 |2010-04-08 15:11:43 date| | Summary|Internal compiler error |[4.3/4.4/4.5 Regression] |detected by avr-gcc. |Internal compiler error | |detected by avr-gcc. Target Milestone|--- |4.3.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43690
next prev parent reply other threads:[~2010-04-08 15:11 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-04-08 15:01 [Bug c/43690] New: " philippe dot hoogvorst at neuf dot fr 2010-04-08 15:11 ` rguenth at gcc dot gnu dot org [this message] 2010-04-09 13:04 ` [Bug middle-end/43690] [4.3/4.4/4.5 Regression] " rguenth at gcc dot gnu dot org 2010-04-12 9:44 ` jakub at gcc dot gnu dot org 2010-05-22 18:36 ` rguenth at gcc dot gnu dot org [not found] <bug-43690-4@http.gcc.gnu.org/bugzilla/> 2010-11-05 11:31 ` jakub at gcc dot gnu.org 2010-11-11 20:37 ` jakub 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=20100408151143.25654.qmail@sourceware.org \ --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).