home *** CD-ROM | disk | FTP | other *** search
- 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
- From: fred@hal6000.thp.Uni-Duisburg.DE (Fred Hucht)
- Newsgroups: comp.unix.aix
- Subject: Re: xlC++ Severe Compiler Error
- Date: 23 Jan 1993 21:39:28 GMT
- Organization: Theoretische Physik, Uni-GH-Duisburg, Germany
- Lines: 33
- Message-ID: <1jsdugINN8rr@unidui.uni-duisburg.de>
- References: <19930122.052714.669@almaden.ibm.com>
- NNTP-Posting-Host: hal6000.uni-duisburg.de
-
-
- The GNU g++ compiler returns better results:
-
- IBM> g++ -Wall -v c.c
- Reading specs from /usr/local/lib/gcc-lib/rs6000-ibm-aix32/2.3.3/specs
- gcc version 2.3.3
- /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
- GNU CPP version 2.3.3
- /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
- GNU C++ version 2.3.3 compiled by GNU C version 2.3.3.
- c.c:5: warning: return type for `main' changed to integer type
- as -o /tmp/ccNGUDFW1.o /tmp/ccNGUDFW.s
- /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
- IBM> a.out
- Variations for 1/2 (in C++):
-
- a = 0 should be 0.0
- b = 0.5 should be 0.5
- c = 1 should be 1.0
- d = 1.5 should be 1.5
- e = 0.5 should be 0.5
- f = 0.5 should be 0.5
- g = 0.5 should be 0.5
- h = 0 should be 0.0 (!)
- IBM>
-
- Hope this helps,
- Fred Hucht, Institute of Theoretical Physics, University of Duisburg, Germany
- EMail: fred@hal6000.Uni-Duisburg.DE
-
- --
- Fred Hucht, Institute of Theoretical Physics, University of Duisburg, Germany
- EMail: fred@hal6000.thp.Uni-Duisburg.DE
-