From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: scott snyder Cc: egcs@cygnus.com Subject: Re: regression test results for 970904 on alpha-dec-osf4.0 Date: Thu, 04 Sep 1997 22:58:00 -0000 Message-id: <22773.873439103@hurl.cygnus.com> References: <199709050546.FAA15859@d0sgif.fnal.gov> X-SW-Source: 1997-09/msg00188.html 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