From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28031 invoked by alias); 8 Dec 2003 00:31:42 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 28023 invoked from network); 8 Dec 2003 00:31:39 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.0.121) by sources.redhat.com with SMTP; 8 Dec 2003 00:31:39 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 8345E2B8F; Sun, 7 Dec 2003 19:31:33 -0500 (EST) Message-ID: <3FD3C665.4090603@gnu.org> Date: Mon, 08 Dec 2003 00:31:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: fnf@ninemoons.com Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Outwit compiler dead code elimination in break.exp test (revised patch) References: <200311292305.hATN51Uj013311@fred.ninemoons.com> <3FCB7FF9.4090601@gnu.org> <200312071421.17200.fnf@ninemoons.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-12/txt/msg00249.txt.bz2 > On Monday 01 December 2003 10:52, Andrew Cagney wrote: > >> As for stopping GCC from eliminating code - last time this came up (ref >> store.exp) it was recommended that the .c files be split so that GCC >> couldn't see the potential optimization. > > > OK. I've revised the patch to split the source file. This is > pretty ugly though as there are a half dozen tests that have > to be modified to accomodate two source files. > > I've attached the patch for review/approval. Wow, thanks for doing this! I was thinking that just one test needed changes. Anyway, perhaphs wait for michaelc to put it through his test harness before committing. Andrew