From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29832 invoked by alias); 31 Mar 2003 08:09:45 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 29824 invoked from network); 31 Mar 2003 08:09:43 -0000 Received: from unknown (HELO imag.imag.fr) (129.88.30.1) by sources.redhat.com with SMTP; 31 Mar 2003 08:09:43 -0000 Received: from ecrins (ecrins.imag.fr [129.88.43.124]) by imag.imag.fr (8.12.8/8.12.8) with ESMTP id h2V89gAC024936; Mon, 31 Mar 2003 10:09:43 +0200 (CEST) Received: from moy by ecrins with local (Exim 3.35 #1) id 18zuMQ-0005IP-00; Mon, 31 Mar 2003 10:09:42 +0200 To: Stuart Longland Cc: Arash Farmand , gcc-help@gcc.gnu.org Subject: Re: gcc From: Matthieu Moy Mail-Followup-To: Stuart Longland , Arash Farmand , gcc-help@gcc.gnu.org Date: Mon, 31 Mar 2003 13:28:00 -0000 In-Reply-To: <3E87EE8F.4070104@longlandclan.hopto.org> (Stuart Longland's message of "Mon, 31 Mar 2003 17:30:23 +1000") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <3E87EE8F.4070104@longlandclan.hopto.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00339.txt.bz2 Stuart Longland writes: > Not sure about it not appearing at all. I think it would appear when > the program ends, but then again, I may be wrong. If the program ends properly, I think the output *has* to be flushed, (At least, it does in most cases) but for example, if your program makes a segfault, you will probably loose the contents of the output buffer. in printf("Hello\n"); f(); printf("world"); g(); if the output is just "Hello", and segmentation fault, the crash may have occured in f() or g() ... That's why its generally a good advice to put "\n" at the end of any debug/test output. -- Matthieu