home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / bug / 3233 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.0 KB  |  41 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!weber.ucsd.edu!corrigan
  2. From: corrigan@weber.ucsd.edu (Michael J. Corrigan)
  3. Newsgroups: gnu.gcc.bug
  4. Subject: libg++-2.3/gcc-2.3.3.u3 core dump on 7xx and 8x7
  5. Date: 22 Jan 1993 21:15:37 -0500
  6. Organization: University of California, San Diego
  7. Lines: 28
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gcc@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <1jojisINN27b@network.ucsd.edu>
  12.  
  13. This example (excerpted from Stroustrup, 2nd edn p.88 ) creates a 20 MB
  14. core dump on hppa1.1 systems ( 7xx and 8x7).
  15. libg++-2.3 is built using gcc-2.3.3.u3 from Utah sand the most recent patches
  16. posted for building libg++-2.3 on the hp700.
  17.  
  18. --------------CUT---------------------
  19. #include <strstream.h>
  20. int main(int argc,char *argv[]) {
  21.     cin = *new istrstream(argv[1],strlen(argv[1]));
  22. }
  23. --------------CUT---------------------
  24. The compile will complete successfully if the cast is made:
  25.  
  26.     cin = (istream) *new istrstream(argv[1],strlen(argv[1]));
  27.  
  28. (P.S. make CFLAGS="-O" LANGUAGES="c" to make the gcc stage1 compiler doesn't
  29. work on the 8x7 as the time to compile c-decl.c is inordinate, although
  30. it apparently does work on the 7xx ==> bug in -O on the 8x7 )
  31.  
  32. Reading specs from /usr/local/lib/gcc-lib/hp700-hpux/2.3.3/specs
  33. gcc version 2.3.3
  34.  /usr/local/lib/gcc-lib/hp700-hpux/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D___HPUX_SOURCE__ -D__hppa -D__hp9000s800 -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -D___HPUX_SOURCE -D__hp9000s700 -D_PA_RISC1_1 -D__hp9000s700 -D_PA_RISC1_1 bug.cc /tmp/cca19829.i
  35. GNU CPP version 2.3.3 (hppa)
  36.  /usr/local/lib/gcc-lib/hp700-hpux/2.3.3/cc1plus /tmp/cca19829.i -quiet -dumpbase bug.cc -version -o /tmp/cca19829.s
  37. GNU C++ version 2.3.3 (hppa) compiled by GNU C version 2.3.3.
  38.  /usr/local/lib/gcc-lib/hp700-hpux/2.3.3/as -o bug.o /tmp/cca19829.s
  39.  
  40.  
  41.