Date: Mon, 26 Jul 1999 10:32:42 -0400 From: Igor Schein To: pgcc AT delorie DOT com Cc: pwas AT ise DOT pw DOT edu DOT pl Subject: Re: Segmentation fault in C++ programs Message-Id: <19990726103242.X28626@oberon.txc.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6us In-Reply-To: ; from Piotr Wasiewicz on Mon, Jul 26, 1999 at 12:54:47PM +0200 Reply-To: pgcc AT delorie DOT com X-Mailing-List: pgcc AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, Jul 26, 1999 at 12:54:47PM +0200, Piotr Wasiewicz wrote: > Hello, > I used the latest Red Hat Linux 6.0 with updates and the pgcc > compiler (first I uninstall egcs) from Foyer rpm packages. I compiled > files with gcc and all is all right even with -O6 -mk6, but when I try to > compile C++ files with g++ (even without any parameters) then obtained > programs give "Segmentation fault" what is for me strange. > After some debugging I noticed errors within file genops.c > from distribution with IO_FILE data (some overflows and other errors). > What should I do? From my experience with pgcc, if you have AMD K6, you must always use -mk6 flag. So try -mk6 -O0 for starters ( it's not clear from your message whether you have already tried it or not ). Igor