From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25239 invoked by alias); 9 Jul 2008 02:32:00 -0000 Received: (qmail 25231 invoked by uid 22791); 9 Jul 2008 02:32:00 -0000 X-Spam-Check-By: sourceware.org Received: from fk-out-0910.google.com (HELO fk-out-0910.google.com) (209.85.128.185) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 Jul 2008 02:31:39 +0000 Received: by fk-out-0910.google.com with SMTP id 19so1401062fkr.8 for ; Tue, 08 Jul 2008 19:31:35 -0700 (PDT) Received: by 10.86.82.16 with SMTP id f16mr6259880fgb.16.1215570695567; Tue, 08 Jul 2008 19:31:35 -0700 (PDT) Received: by 10.86.66.18 with HTTP; Tue, 8 Jul 2008 19:31:35 -0700 (PDT) Message-ID: Date: Wed, 09 Jul 2008 03:26:00 -0000 From: "James Gregory" To: gcc-help@gcc.gnu.org Subject: Including affects whether or not program freezes? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00106.txt.bz2 1. Compile with MSVC 7.1, no optimization: my program doesn't freeze 2. Compile with MSVC 7.1, with optimization: my program doesn't freeze 3. Compile with gcc 4.2.3 (Ubuntu 64 bit), no optimization: my program doesn't freeze 4. Compile with gcc 4.2.3 (Ubuntu 64 bit), with optimization: my program freezes in a particular function 5. Compile with gcc 4.2.3 (Ubuntu 64 bit), with optimization, and include at the top of the file where the function which freezes is defined: my program doesn't freeze Debugging this is difficult. James