public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
@ 2001-12-01 8:49 rodrigc
0 siblings, 0 replies; 7+ messages in thread
From: rodrigc @ 2001-12-01 8:49 UTC (permalink / raw)
To: espenlaub, gcc-bugs, gcc-gnats, gcc-prs, nobody
Synopsis: the i386 backend crashes on incorrect asm("... %c0 ...")
State-Changed-From-To: analyzed->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Dec 1 08:49:56 2001
State-Changed-Why:
Patch committed.
2001-11-29 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR other/4932
* config/i386/i386.c (print_operand): Verify that the
argument to %c is a constant and not a conditional which
needs to be reversed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4932&database=gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
@ 2001-12-01 8:56 rodrigc
0 siblings, 0 replies; 7+ messages in thread
From: rodrigc @ 2001-12-01 8:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR other/4932; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: espenlaub@informatik.uni-ulm.de, gcc-bugs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
Date: 1 Dec 2001 16:49:56 -0000
Synopsis: the i386 backend crashes on incorrect asm("... %c0 ...")
State-Changed-From-To: analyzed->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Dec 1 08:49:56 2001
State-Changed-Why:
Patch committed.
2001-11-29 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR other/4932
* config/i386/i386.c (print_operand): Verify that the
argument to %c is a constant and not a conditional which
needs to be reversed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4932&database=gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
@ 2001-11-21 23:13 rodrigc
0 siblings, 0 replies; 7+ messages in thread
From: rodrigc @ 2001-11-21 23:13 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR other/4932; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: espenlaub@informatik.uni-ulm.de, gcc-bugs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
Date: 29 Nov 2001 17:26:43 -0000
Synopsis: the i386 backend crashes on incorrect asm("... %c0 ...")
State-Changed-From-To: feedback->analyzed
State-Changed-By: rodrigc
State-Changed-When: Thu Nov 29 09:26:42 2001
State-Changed-Why:
OK, I saw your testcase submitted with this PR.
I have submitted this patch with your testcase to the gcc-patches
mailing list, where it will be evaluated:
http://gcc.gnu.org/ml/gcc-patches/2001-11/msg01987.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4932&database=gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
@ 2001-11-21 23:08 rodrigc
0 siblings, 0 replies; 7+ messages in thread
From: rodrigc @ 2001-11-21 23:08 UTC (permalink / raw)
To: espenlaub, gcc-bugs, gcc-gnats, gcc-prs, nobody
Synopsis: the i386 backend crashes on incorrect asm("... %c0 ...")
State-Changed-From-To: feedback->analyzed
State-Changed-By: rodrigc
State-Changed-When: Thu Nov 29 09:26:42 2001
State-Changed-Why:
OK, I saw your testcase submitted with this PR.
I have submitted this patch with your testcase to the gcc-patches
mailing list, where it will be evaluated:
http://gcc.gnu.org/ml/gcc-patches/2001-11/msg01987.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4932&database=gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
@ 2001-11-21 22:46 rodrigc
0 siblings, 0 replies; 7+ messages in thread
From: rodrigc @ 2001-11-21 22:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR other/4932; it has been noted by GNATS.
From: rodrigc@gcc.gnu.org
To: espenlaub@informatik.uni-ulm.de, gcc-bugs@gcc.gnu.org,
gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
Date: 29 Nov 2001 16:19:16 -0000
Synopsis: the i386 backend crashes on incorrect asm("... %c0 ...")
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Thu Nov 29 08:19:16 2001
State-Changed-Why:
Do you have a testcase for this?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4932&database=gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
@ 2001-11-21 22:46 rodrigc
0 siblings, 0 replies; 7+ messages in thread
From: rodrigc @ 2001-11-21 22:46 UTC (permalink / raw)
To: espenlaub, gcc-bugs, gcc-gnats, gcc-prs, nobody
Synopsis: the i386 backend crashes on incorrect asm("... %c0 ...")
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Thu Nov 29 08:19:16 2001
State-Changed-Why:
Do you have a testcase for this?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4932&database=gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* other/4932: the i386 backend crashes on incorrect asm("... %c0 ...")
@ 2001-11-19 11:06 espenlaub
0 siblings, 0 replies; 7+ messages in thread
From: espenlaub @ 2001-11-19 11:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 4932
>Category: other
>Synopsis: the i386 backend crashes on incorrect asm("... %c0 ...")
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Fri Nov 23 01:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Klaus Espenlaub
>Release: gcc-3.0
>Organization:
>Environment:
System: Linux deadbeef 2.4.4-4GB #2 Fri Jul 20 08:48:42 CEST 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure --enable-languages=c
>Description:
If an asm(...) output pattern contains the `%c' code, but
the actual operand isn't a constant, then the code in
i386.c tries to treat it as a condition code that should
be reversed - and that fails with a SIGSEGV.
>How-To-Repeat:
gcc testcase.c -S testcase.s
>Fix:
--- i386.c-orig Fri Nov 23 10:29:42 2001
+++ i386.c Fri Nov 23 10:35:19 2001
@@ -3522,6 +3522,15 @@ print_operand (file, x, code)
/* Like above, but reverse condition */
case 'c':
+ /* Buggy user-written assembler instructions may contain this code
+ * (the user expects the meaning "output constant value without the
+ * syntax that normally indicates an immediate operand"), but the
+ * actual operand the compiler uses isn't a constant after all. */
+ if (GET_RTX_CLASS (GET_CODE (x)) != '<')
+ {
+ output_operand_lossage ("operand is neither a constant nor a condition code, invalid operand code `c'");
+ return;
+ }
put_condition_code (GET_CODE (x), GET_MODE (XEXP (x, 0)), 1, 0, file);
return;
case 'f':
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="testcase.c"
Content-Disposition: inline; filename="testcase.c"
void *abc;
int main(void)
{
__asm__ __volatile__("some assembly code containing %c0"
: /* no output */ : "ir" (abc));
}
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-12-01 16:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-01 8:49 other/4932: the i386 backend crashes on incorrect asm("... %c0 ...") rodrigc
-- strict thread matches above, loose matches on Subject: below --
2001-12-01 8:56 rodrigc
2001-11-21 23:13 rodrigc
2001-11-21 23:08 rodrigc
2001-11-21 22:46 rodrigc
2001-11-21 22:46 rodrigc
2001-11-19 11:06 espenlaub
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).