public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2182: -fpic flag gives: ICE instantiate_virtual_regs_1, at function.c:3897
@ 2002-11-21 3:08 Wolfgang Bangerth
0 siblings, 0 replies; only message in thread
From: Wolfgang Bangerth @ 2002-11-21 3:08 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/2182; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/2182: -fpic flag gives: ICE instantiate_virtual_regs_1, at
function.c:3897
Date: Thu, 14 Nov 2002 15:48:10 -0600 (CST)
Here are 4 variations that generate various internal errors. Please don't
ask me whether they make sense, I just tried to trim this down to a
minimum and discovered that one can trigger more than one ICE. Some can be
reproduced with a plain C compiler, at least one needs the C++ compiler.
--------------1--------------------
void foo(unsigned char * destination,
const unsigned char * Y,
const unsigned char * Cb,
const unsigned char * Cr,
int width, int height, int stride)
{
static const unsigned short delta[] = {1};
static const short scale[] = {1};
asm volatile(
"emms\n"
:
: "r" (destination), "r" (Cb), "r" (Cr), "r" (stride),
"m" (delta)
);
-----------------2--------------------
void foo(unsigned char * destination,
const unsigned char * Y,
const unsigned char * Cb,
const unsigned char * Cr,
int width, int height, int stride)
{
static const unsigned short delta[] = {1};
static const short scale[] = {1};
asm volatile(
"emms\n"
:
: "r" (destination), "r" (Cb), "r" (Cr), "r" (stride),
"m" (delta), "m" (scale)
);
}
-------------3--------------------------
void foo(unsigned char * destination,
const unsigned char * Y,
const unsigned char * Cb,
const unsigned char * Cr,
int width, int height, int stride)
{
static const unsigned short delta[] = {1};
static const short scale[] = {1};
asm volatile(
"emms\n"
:
: "r" (destination), "r" (Cb), "r" (Cr), "r" (stride),
"m" (delta), "m" (scale), "m" (width)
);
}
------------4--------------------------
void foo(unsigned char * destination,
const unsigned char * Y,
const unsigned char * Cb,
const unsigned char * Cr,
int width, int height, int stride)
{
static const unsigned short delta[];
static const short scale[];
asm volatile(
"emms\n"
:
: "r" (destination), "r" (Cb), "r" (Cr), "r" (stride),
"m" (delta), "m" (scale), "m" (width)
);
}
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-14 21:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21 3:08 c++/2182: -fpic flag gives: ICE instantiate_virtual_regs_1, at function.c:3897 Wolfgang Bangerth
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).