regression test results for 970904 on alpha-dec-osf4.0

Jeffrey A Law law@hurl.cygnus.com
Thu Sep 4 22:58:00 GMT 1997


  In message < 199709050546.FAA15859@d0sgif.fnal.gov >you write:
  > 
  > >  In message < 199709050447.EAA14961@d0sgif.fnal.gov >you write:
  > >  > As reported earlier, this is due to assumption in this test case
  > >  > that 2*sizeof(long) == sizeof(double), which is false for the alpha.
  > >  > If this is fixed, this test passes.
  > >A patch would be welcome.
  > 
  > hi -
  > 
  > I included a little patch with the previous regression report i sent;
  > however, that was a little cheesy in that it tested for just __alpha.
  > Here's one which might be a little more generally applicable.
  > This still assumes that a double is 64 bits, but i'm not sure how
  > to reliably test for that using the preprocessor.
Not exactly what I was looking for :)


I think the way to go is make "pt" an array of ints.

Then in main do something like this

if (sizeof (double) != 2 * sizeof (int)
    || sizeof (double) != 8)
  exit (0);


Jeff



More information about the Gcc mailing list