From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1587 invoked by alias); 16 Mar 2006 04:49:18 -0000 Received: (qmail 1579 invoked by uid 22791); 16 Mar 2006 04:49:17 -0000 X-Spam-Check-By: sourceware.org Received: from cumulus.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.72) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Mar 2006 04:49:15 +0000 Received: from mail.localnet (dsl-202-45-120-45-static.SA.netspace.net.au [202.45.120.45]) by mail.netspace.net.au (Postfix) with ESMTP id 47AA08E6A3 for ; Thu, 16 Mar 2006 15:49:03 +1100 (EST) Received: by mail.localnet (Postfix, from userid 1000) id 11ECCBB0155; Thu, 16 Mar 2006 15:19:03 +1030 (CST) Date: Thu, 16 Mar 2006 04:49:00 -0000 From: Kevin Shanahan To: gcc-help@gcc.gnu.org Subject: gcc 4.1 -O1 problem Message-ID: <20060316044903.GE9176@cubit> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i 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 X-SW-Source: 2006-03/txt/msg00112.txt.bz2 Hi, I've come across a problem with my program when compiling with gcc-4.1 as opposed to gcc-4.0. With 4.1, the sound output comes out as corrupted. I've narrowed it down to a single source file, and the fact that it works with -O0 but not -O1. However, I've tried to find the specific optimisation flag that is causing the issue and I've come up against the situation below: If I compile with -O0 and each of the flags below, the sound output is working again. If I compile with -O1 and each of the options below changed to -fno-... then the sound corruption is back: -fdefer-pop -fdelayed-branch -fguess-branch-probability -fcprop-registers -floop-optimize -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename -ftree-fre -ftree-ch -fmerge-constants Are there any other options besides these which -O1 affects? Any other ideas as to how I can narrow down the cause? Thanks, Kevin.