public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: gccmail@whalesolutions.ca To: gcc-gnats@gcc.gnu.org Subject: inline-asm/10123: inconsistent operand constraints cause ICE at -O0 Date: Mon, 17 Mar 2003 14:56:00 -0000 [thread overview] Message-ID: <20030317144942.16549.qmail@sources.redhat.com> (raw) >Number: 10123 >Category: inline-asm >Synopsis: inconsistent operand constraints cause ICE at -O0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Mon Mar 17 14:56:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Jonah Graham >Release: gcc version 3.3 20030303 (prerelease) >Organization: >Environment: i686-pc-cygwin >Description: When a register constraint that is an EXTRA_CONSTRAINT for the machine and the extra constraint only accepts a constant, an ICE occurs in instantiate_virtual_regs_1, at function.c:4087, but only when compiled with -O0. An example is 'e' on x86. (This run is from 3.3, but it also occurs in 3.1.) int main(int argc, char **argv) { asm volatile ("" : "=e" (argc) : ); return 0; } $ ./xgcc -B. -v Reading specs from ./specs Configured with: /cygdrive/q/csp/taz/gcc-20030303/configure --enable-languages=c Thread model: single gcc version 3.3 20030303 (prerelease) >How-To-Repeat: $ cat extra_constraint.c int main(int argc, char **argv) { asm volatile ("" : "=e" (argc) : ); return 0; } $ cat immed_constraint.c int main(int argc, char **argv) { asm volatile ("" : "=I" (argc) : ); return 0; } $ ./xgcc -B. -O0 extra_constraint.c extra_constraint.c: In function `main': extra_constraint.c:5: internal compiler error: in instantiate_virtual_regs_1, at function.c:4087 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. $ ./xgcc -B. -O1 extra_constraint.c extra_constraint.c: In function `main': extra_constraint.c:3: error: inconsistent operand constraints in an `asm' $ ./xgcc -B. -O0 immed_constraint.c immed_constraint.c: In function `main': immed_constraint.c:3: error: inconsistent operand constraints in an `asm' >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2003-03-17 14:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-03-17 14:56 gccmail [this message] 2003-03-17 21:06 Jonah Graham 2003-03-18 0:35 bangerth
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=20030317144942.16549.qmail@sources.redhat.com \ --to=gccmail@whalesolutions.ca \ --cc=gcc-gnats@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).