This is the mail archive of the gcc-bugs@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


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]