home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / aix / 13678 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!Germany.EU.net!mpifr-bonn.mpg.de!uniol!unidui!hal6000!fred
  2. From: fred@hal6000.thp.Uni-Duisburg.DE (Fred Hucht)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: xlC++ Severe Compiler Error
  5. Date: 23 Jan 1993 21:39:28 GMT
  6. Organization: Theoretische Physik, Uni-GH-Duisburg, Germany
  7. Lines: 33
  8. Message-ID: <1jsdugINN8rr@unidui.uni-duisburg.de>
  9. References: <19930122.052714.669@almaden.ibm.com>
  10. NNTP-Posting-Host: hal6000.uni-duisburg.de
  11.  
  12.  
  13. The GNU g++ compiler returns better results:
  14.  
  15. IBM> g++ -Wall -v c.c
  16. Reading specs from /usr/local/lib/gcc-lib/rs6000-ibm-aix32/2.3.3/specs
  17. gcc version 2.3.3
  18.  /usr/local/lib/gcc-lib/rs6000-ibm-aix32/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D_IBMR2 -D_AIX -D_AIX32 -D___IBMR2__ -D___AIX__ -D___AIX32__ -D___IBMR2 -D___AIX -D___AIX32 -D__CHAR_UNSIGNED__ -Wall c.c /tmp/ccNGUDFW.i
  19. GNU CPP version 2.3.3
  20.  /usr/local/lib/gcc-lib/rs6000-ibm-aix32/2.3.3/cc1plus /tmp/ccNGUDFW.i -quiet -dumpbase c.cc -Wall -version -o /tmp/ccNGUDFW.s
  21. GNU C++ version 2.3.3 compiled by GNU C version 2.3.3.
  22. c.c:5: warning: return type for `main' changed to integer type
  23.  as -o /tmp/ccNGUDFW1.o /tmp/ccNGUDFW.s
  24.  /usr/local/lib/gcc-lib/rs6000-ibm-aix32/2.3.3/ld -T512 -H512 -btextro -bhalt:4 -bnodelcsect /lib/crt0.o -L/usr/local/lib/gcc-lib/rs6000-ibm-aix32/2.3.3 -L/usr/local/lib /tmp/ccNGUDFW1.o -lg++ /usr/local/lib/gcc-lib/rs6000-ibm-aix32/2.3.3/libgcc.a -lc /usr/local/lib/gcc-lib/rs6000-ibm-aix32/2.3.3/libgcc.a
  25. IBM> a.out
  26. Variations for 1/2 (in C++):
  27.  
  28.  a = 0 should be 0.0 
  29.  b = 0.5 should be 0.5 
  30.  c = 1 should be 1.0 
  31.  d = 1.5 should be 1.5 
  32.  e = 0.5 should be 0.5 
  33.  f = 0.5 should be 0.5 
  34.  g = 0.5 should be 0.5 
  35.  h = 0 should be 0.0 (!)
  36. IBM> 
  37.  
  38. Hope this helps, 
  39. Fred Hucht, Institute of Theoretical Physics, University of Duisburg, Germany
  40. EMail: fred@hal6000.Uni-Duisburg.DE
  41.  
  42. --
  43. Fred Hucht, Institute of Theoretical Physics, University of Duisburg, Germany
  44. EMail: fred@hal6000.thp.Uni-Duisburg.DE
  45.