This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization/190: Optimization bug for x86 target


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
 
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]