public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: middle-end/5099: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));
@ 2002-04-24 15:31 rth
  0 siblings, 0 replies; 4+ messages in thread
From: rth @ 2002-04-24 15:31 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lindsayd, rth

Synopsis: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));

State-Changed-From-To: closed->analyzed
State-Changed-By: rth
State-Changed-When: Wed Apr 24 15:31:03 2002
State-Changed-Why:
    Patch had to be reverted temporarily.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5099


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: middle-end/5099: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));
@ 2002-04-04 15:16 rth
  0 siblings, 0 replies; 4+ messages in thread
From: rth @ 2002-04-04 15:16 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lindsayd, rth

Synopsis: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Thu Apr  4 15:16:57 2002
State-Changed-Why:
    http://gcc.gnu.org/ml/gcc-patches/2002-04/msg00238.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5099


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: middle-end/5099: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));
@ 2002-04-04 13:32 rth
  0 siblings, 0 replies; 4+ messages in thread
From: rth @ 2002-04-04 13:32 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lindsayd, nobody, rth

Synopsis: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));

Responsible-Changed-From-To: unassigned->rth
Responsible-Changed-By: rth
Responsible-Changed-When: Thu Apr  4 13:32:07 2002
Responsible-Changed-Why:
    .

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5099


^ permalink raw reply	[flat|nested] 4+ messages in thread

* middle-end/5099: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a));
@ 2001-12-12 19:56 lindsayd
  0 siblings, 0 replies; 4+ messages in thread
From: lindsayd @ 2001-12-12 19:56 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-24 22:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-24 15:31 middle-end/5099: m68k-aout/3.0.2/cc1 aborts on asm("movw sr,%0":"=hd"(a)); rth
  -- strict thread matches above, loose matches on Subject: below --
2002-04-04 15:16 rth
2002-04-04 13:32 rth
2001-12-12 19:56 lindsayd

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).