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/10165: [3.2.2] insn - jsdtoa.c from mozilla with -O2 -march=pentium4


Synopsis: [3.2.2] insn - jsdtoa.c from mozilla with -O2 -march=pentium4

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Mar 20 16:23:58 2003
State-Changed-Why:
    Confirmed. Here's a much smaller testcase:
    -----------------------
    typedef union {
        double value;
        struct {
            int lsw;
            int msw;
        } parts;
    } X;
    
    
    void foo()
    {
      int e1;
      double rv;
    
      if (e1 < 0) {
        undfl:
        e1 = 1;
        goto undfl;
      }
      if (((__extension__ ({ X x;
                             x.value = (rv); x.parts.lsw; }))
           & 1))
          goto undfl;
      if ((__extension__ ({ X x;
                            x.value = (rv); x.parts.lsw; }))
          ||
          (__extension__ ({ X x;
                            x.value = (rv); x.parts.msw; }))
          & 0xfffff)
        {}
    }
    -----------------------------
    
    It fails for 3.2, but is fixed in 3.3 and mainline. 
    3.0 didn't have -march=pentium4, so this is not a
    regression and has already been fixed, which is why
    I will close the report.
    
    Thanks anyway
      Wolfgang

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10165


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