public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/3990: logical or | within inline assembly cuts off assembly code
@ 2002-02-19 6:47 jakub
0 siblings, 0 replies; 2+ messages in thread
From: jakub @ 2002-02-19 6:47 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jodaman, nobody
Synopsis: logical or | within inline assembly cuts off assembly code
State-Changed-From-To: open->closed
State-Changed-By: jakub
State-Changed-When: Tue Feb 19 06:47:41 2002
State-Changed-Why:
Fixed by:
2001-10-12 Jakub Jelinek <jakub@redhat.com>
* final.c (output_asm_insn): Make sure assembly dialects are
terminated, not nested. Output `|' and `}' characters if they
don't appear inside assembly dialect selection.
* config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
strsetsi_rex_1): Add {} braces.
in gcc 3.1 CVS.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3990
^ permalink raw reply [flat|nested] 2+ messages in thread
* c/3990: logical or | within inline assembly cuts off assembly code
@ 2001-08-10 16:56 jodaman
0 siblings, 0 replies; 2+ messages in thread
From: jodaman @ 2001-08-10 16:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 3990
>Category: c
>Synopsis: logical or | within inline assembly cuts off assembly code
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 10 16:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: jodaman@ee1.bradley.edu
>Release: gcc version 3.0 (Debian)
>Organization:
>Environment:
>Description:
/* GCC 3.0 this to assembly, and behold the eaten code. */
/* (GCC 2.95.2 is not at all voracious with the '|' and */
/* all assembly that follows.) */
/* CodeSourcery's Online Test Compilation ( 2001-06-26) */
/* reveals that gcc 3.0.1 still consumes the code */
int
test()
{
int o;
__asm__
(
"movl $1, %%eax\n\t"
"sall $(1 | 2), %%eax\n\t"
"movl %%eax, %0\n\t"
: "=a" (o)
);
return(o);
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-02-19 14:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-19 6:47 c/3990: logical or | within inline assembly cuts off assembly code jakub
-- strict thread matches above, loose matches on Subject: below --
2001-08-10 16:56 jodaman
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).