From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30436 invoked by alias); 26 Jul 2004 21:15:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 30428 invoked from network); 26 Jul 2004 21:15:33 -0000 Received: from unknown (HELO demos.bsdclusters.com) (69.55.225.36) by sourceware.org with SMTP; 26 Jul 2004 21:15:33 -0000 Received: from demos.bsdclusters.com (demos [69.55.225.36]) by demos.bsdclusters.com (8.12.8p1/8.12.8) with ESMTP id i6QLFOHL079074; Mon, 26 Jul 2004 14:15:24 -0700 (PDT) (envelope-from kmacy@eventdriven.org) Received: from localhost (kmacy@localhost) by demos.bsdclusters.com (8.12.8p1/8.12.8/Submit) with ESMTP id i6QLFOqJ079071; Mon, 26 Jul 2004 14:15:24 -0700 (PDT) X-Authentication-Warning: demos.bsdclusters.com: kmacy owned process doing -bs Date: Mon, 26 Jul 2004 21:19:00 -0000 From: Kip Macy X-X-Sender: kmacy@demos.bsdclusters.com To: Baurjan Ismagulov cc: gdb@sources.redhat.com Subject: Re: bug disappears if compiled with -O0 In-Reply-To: <20040726211129.GC2028@ata.cs.hun.edu.tr> Message-ID: <20040726141134.A53701@demos.bsdclusters.com> References: <20040725223832.GB8947@ata.cs.hun.edu.tr> <41047629.nailSP1ZPLRF@mindspring.com> <20040726211129.GC2028@ata.cs.hun.edu.tr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-07/txt/msg00331.txt.bz2 > > > If the bug truly is a code generation bug, then you will need to read > > assembly language to isolate the bug. > > I will as soon as I'm able to locate it. Could it be anything other than > an optimization bug? The problem is reported also for gcc 2.95.4 on > stable. > Recently I hit a bug caused by a doubleword unaligned store. It only showed up with -O2 because the compiler would otherwise generate single-word stores. You can try different compilers, but I would take a close look at the generated code. -Kip