From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4794 invoked by alias); 8 Nov 2006 16:43:57 -0000 Received: (qmail 4786 invoked by uid 22791); 8 Nov 2006 16:43:57 -0000 X-Spam-Check-By: sourceware.org Received: from fra-del-01.spheriq.net (HELO fra-del-01.spheriq.net) (195.46.51.97) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Nov 2006 16:43:49 +0000 Received: from fra-out-03.spheriq.net (fra-out-03.spheriq.net [195.46.51.131]) by fra-del-01.spheriq.net with ESMTP id kA8Ghkd6015685 for ; Wed, 8 Nov 2006 16:43:46 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-03.spheriq.net with ESMTP id kA8GhjXU016254 for ; Wed, 8 Nov 2006 16:43:45 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id kA8Ghh9s013954 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 8 Nov 2006 16:43:44 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A68E4DA41 for ; Wed, 8 Nov 2006 16:43:43 +0000 (GMT) Received: from mail2.gnb.st.com (mail2.gnb.st.com [164.129.119.59]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6011F4752D for ; Wed, 8 Nov 2006 16:43:43 +0000 (GMT) Received: from [164.129.122.218] (gnx2364.gnb.st.com [164.129.122.218]) by mail2.gnb.st.com (MOS 3.5.8-GR) with ESMTP id CJL99987 (AUTH lyon); Wed, 8 Nov 2006 17:43:41 +0100 (CET) Message-ID: <4552093D.4050309@st.com> Date: Wed, 08 Nov 2006 16:43:00 -0000 From: Christophe LYON User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: testsuite gdb.base/constvars: force allocation of local variables References: <4551E0F4.7030803@st.com> <20061108161502.GA29286@nevyn.them.org> In-Reply-To: <20061108161502.GA29286@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00043.txt.bz2 Daniel Jacobowitz wrote: > Please, reply to the list next time. This patch is OK if you fix your > formatting. > OK, so here is the revised version: 2006-11-08 Christophe Lyon * gdb.base/constvars.c (main): Write to crass and crips, so that they are allocated by the compiler. Index: gdb.base/constvars.c =================================================================== --- gdb.base/constvars.c (revision 96) +++ gdb.base/constvars.c (working copy) @@ -169,8 +169,8 @@ main (void) /* various structs with const members */ - struct crass { char * const ptr; } crass; - struct crisp { char * const *ptr; } crisp; + struct crass { char * const ptr; } crass = { lamprey }; + struct crisp { char * const *ptr; } crisp = { &lamprey }; /* misc. references */ /* -- Christophe.