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]

[Bug target/27907] [4.2 regression] ICE in expand_simple_unop, at optabs.c:2307



------- Comment #1 from falk at debian dot org  2006-06-07 08:12 -------
Confirmed with 4.2.0 20060606. Cleaned up test case:

struct fann_neuron {
  double value;
} __attribute__ ((packed));

void fann_run (struct fann_neuron **last_neuron) {
    while (1)
      (*last_neuron)->value = 1;    
}

The same ICE occurs in the ufraw package, test case:

void f(double);
void SaveNikonDataFile(void) {
    while (1) {
        union {
            double d;
            unsigned char b[8];
        } dat1, dat2;
        dat1.d = 1;
        dat2.d = 1;
        dat2.b[7] = dat1.b[0];
        f(dat2.d);
    }
}

This one occurs only with -ffast-math.


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27907


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