Article View: gnu.g++.bug
Article #1149g++ on sgi 3.3.2
From: George Lindholm
Date: Wed, 24 Apr 1991 20:22
Date: Wed, 24 Apr 1991 20:22
76 lines
2445 bytes
2445 bytes
In answer to my own question about stderr output, the following patch
fixes the problem.
I also found that I had to link with -lmalloc to avoid core dumps in free.
Also, several of the tests failed either to asserts or wrong answers (and one
core dump):
assert wrong answer core dump
tString x
tInteger x x
tBitSet x
tBitString x
tFix x
*** g++-include/stdio.h.orig Tue Apr 23 00:51:22 1991
--- g++-include/stdio.h Wed Apr 24 11:15:17 1991
***************
*** 141,146 ****
--- 141,170 ----
#endif
+
+ #if defined(sgi)
+ # define HAVE_VPRINTF
+ # define HAVE_SETVBUF
+ # define HAVE_SETLINEBUF
+
+ # ifdef BUFSIZ
+ # undef BUFSIZ
+ # endif
+ # define BUFSIZ 8192
+
+ # ifdef _NFILE
+ # undef _NFILE
+ # endif
+ # define _NFILE 100
+
+ # define IOBUF_FLAG_TYPE char
+ # define IOBUF_FILE_TYPE char
+
+ # ifndef USG
+ # define USG /* Important */
+ # endif
+ #endif
+
#ifdef hpux
#define IOBUF_FLAG_TYPE short
#endif
***************
*** 197,203 ****
/* check and possibly redefine the following */
#ifndef VMS
! #define BUFSIZ 1024
#else
#define BUFSIZ 512
#endif
--- 221,229 ----
/* check and possibly redefine the following */
#ifndef VMS
! # ifndef BUFSIZ
! # define BUFSIZ 1024
! # endif
#else
#define BUFSIZ 512
#endif
--
George Lindholm phone: (604) 822-4375
University Computing Services internet: lindholm@ucs.ubc.ca
University of British Columbia bitnet: USERGNL@UBCMTSG
6356 Agricultural Road, Vancouver, B.C., Canada, V6T 1T7
Technical Details
Message-ID:
<1991Apr24.202242.18773@unixg.ubc.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!ai-lab!ai.mit.edu!gnulistsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!ai-lab!ai.mit.edu!gnulists From: lindholm@ucs.ubc.ca (George Lindholm) Newsgroups: gnu.g++.bug,gnu.g++.help,gnu.g++.lib.bug,comp.sys.sgi Subject: g++ on sgi 3.3.2 Message-ID: <1991Apr24.202242.18773@unixg.ubc.ca> Date: 24 Apr 91 20:22:42 GMT Followup-To: gnu.g++.bug Organization: University of British Columbia Computing Services Lines: 76 Approved: info-gnu@prep.ai.mit.edu Nntp-Posting-Host: greve.ucs.ubc.ca Apparently-To: bug-lib-g++@prep.ai.mit.edu