public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/4869: ICE on inline assembler
@ 2001-11-02  7:22 pavenis
  0 siblings, 0 replies; only message in thread
From: pavenis @ 2001-11-02  7:22 UTC (permalink / raw)
  To: gcc-gnats


>Number:         4869
>Category:       c
>Synopsis:       ICE on inline assembler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 13 09:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andris Pavenis
>Release:        gcc-3.1 20011112 (experimental), gcc-3.1 20011030 (experimantal)
>Organization:
>Environment:
i686-pc-linux-gnu: gcc-3.1 20011112
i586-pc-msdosdjgpp: gcc-3.1 20011030
>Description:
gcc-3.1 (specified versions) generates ICE on following 
code which violates aliasing rules. The behaviour of code
is undefined, but it should compile. 

/*  This example causes ICE with gcc-3.1 20011030  */

long long rdtsc (void)
{
    long long Result;
    __asm__ ( "      rdtsc\n"
            : "=ax" ( ((unsigned long *) & Result)[0] ),
              "=dx" ( ((unsigned long *) & Result)[1] )
            );
    return Result;
}

I'm getting following output from
./xgcc -B./ -c bad.c

bad1.c: In function `rdtsc':
bad1.c:11: Internal compiler error in fixup_var_refs_1, at function.c:1912
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Andris

>How-To-Repeat:
gcc -c bad1.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-13 17:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-02  7:22 c/4869: ICE on inline assembler pavenis

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