This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/190: Optimization bug for x86 target
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: martin at loewis dot home dot cs dot tu-berlin dot de, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, micksa at knobbits dot org, rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rth at redhat dot com
- Date: Sat, 12 Jan 2002 20:21:50 -0500
- Subject: Re: optimization/190: Optimization bug for x86 target
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=190
I've reduced the testcase and attached it to this PR:
#include <stdint.h>
uint32_t Ycolor[256];
void foo ()
{
uint8_t y22;
__asm__ __volatile__ ("movd" " %0, %%" "mm3" : : "X" ( Ycolor[y22]
)) ;
}
If y22 is left uninitialized, the compiler will ICE if -O is specified.
The workarounds are:
(1) initialize y22 to some value
(2) Change "X" to "m" as rth previously mentioned in a followup to
this PR.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net