go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Update REQ 5397]: hardy mystery



Hi Daeron,

Thanks for looking into the mystery.  I located the problem.
It's an optimization error tripped by the HP
architecture.  It occurs when the test program is compiled
with 'gcc -O2' or 'cc -O2'.  I've fixed it in qhull by using:

      fprintf(stdout, " %2.2g", r=*point++);

I'd like to report the problem.  Please send hardy's
processor type and operating system, the "bug" address for 
hardy's cc compiler, and the version numbers for both gcc and cc?

Thanks.                                         --Brad


>#include <stdio.h>
>
>void qh_printpoint(FILE *, char *, double *);
>
>void qh_printpoint(FILE *fp, char *string, double *point) {
>  int k,id;
>  double *p;
>
>  if (!point)
>    return;
>  fprintf (stdout, "point %x %2.2g %2.2g %2.2g\n", (int) point, point[0], point\
>[
>1], point[2]);
>  p= point;
>  fprintf (stdout, "point %2.2g %x %2.2g %x %2.2g %x %2.2g %x\n", *p, (int)p,
>       *p++, (int)p, *p++, (int)p, *p++, (int) p);
>
>  for(k= 3; k--; ) {
>      fprintf(stdout, " %2.2g", *point++);
>  }
>/*   fprintf(fp, "\n");*/
>} /* printpoint */
>
>int main(int argc, char **argv) {
>  double x[8];
>  x[0]=0.0;x[1]=0.0;x[2]= -0.5;
>  qh_printpoint((FILE *)NULL, (char *)NULL, x);
>}
>
>
>
>
>
>
>assign: daeron
>state: closed
>
>


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo