public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: lindsayd@cisco.com To: gcc-gnats@gcc.gnu.org Subject: middle-end/5099: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a)); Date: Wed, 12 Dec 2001 19:56:00 -0000 [thread overview] Message-ID: <20011213035009.29077.qmail@sources.redhat.com> (raw) >Number: 5099 >Category: middle-end >Synopsis: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a)); >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Wed Dec 12 19:56:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Don Lindsay >Release: 3.0.2 >Organization: >Environment: sparc-sun-solaris2.6 x m68k-aout Configuration options were: --with-gnu-as --with-gnu-ld --with-newlib --enable-languages=c++ --disable-shared --with-headers=$MERGE/newlib/libc/include --target m68k-aout >Description: Internal compiler error in instantiate_virtual_regs_1, at function.c:3904 >How-To-Repeat: gcc.68k -S foo.c where foo.c is: typedef unsigned short ushort; ushort set_ipl() { ushort retval; asm ("movw sr,%0" : "=hd" (retval)); return retval; } The killer being the illegal "h" constraint. >Fix: Not sure. The "h" constraint is illegal on the 68k, and should be ignored or complained about. GCC 2.95.3 ignored it, in the sense that the "h" didn't affect the generated .s file for the original guilty program. GDB showed GCC 3.0.2 hit expand_asm_operands, who called parse_output_constraint, and both go through the default case arm when they switch on 'h'. But something caught up with the compiler later on: presumably a consequence of something done by the default case arm. I'd vote for an error message about "unknown constraint". Which would of course have to be coded in a macro supplied by the back ends, like EXTRA_CONSTRAINT, since the backends know what extended contraints they do and don't add. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-12-13 3:56 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-12-12 19:56 lindsayd [this message] 2002-04-04 13:32 rth 2002-04-04 15:16 rth 2002-04-24 15:31 rth
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=20011213035009.29077.qmail@sources.redhat.com \ --to=lindsayd@cisco.com \ --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).