This is the mail archive of the
gcc-prs@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: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 13 Jan 2002 01:26:00 -0000
- Subject: Re: optimization/190: Optimization bug for x86 target
- Reply-to: Craig Rodrigues <rodrigc at mediaone dot net>
The following reply was made to PR optimization/190; it has been noted by GNATS.
From: Craig Rodrigues <rodrigc@mediaone.net>
To: martin@loewis.home.cs.tu-berlin.de, gcc-gnats@gcc.gnu.org,
gcc-prs@gcc.gnu.org, micksa@knobbits.org, rodrigc@gcc.gnu.org,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, rth@redhat.com
Cc:
Subject: Re: optimization/190: Optimization bug for x86 target
Date: Sat, 12 Jan 2002 20:21:50 -0500
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