From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6534 invoked by alias); 8 Nov 2006 13:52:19 -0000 Received: (qmail 6526 invoked by uid 22791); 8 Nov 2006 13:52:18 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-02.spheriq.net (HELO lon-del-02.spheriq.net) (195.46.50.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Nov 2006 13:52:11 +0000 Received: from lon-out-02.spheriq.net ([195.46.50.130]) by lon-del-02.spheriq.net with ESMTP id kA8Dq8Y7026299 for ; Wed, 8 Nov 2006 13:52:08 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-02.spheriq.net with ESMTP id kA8Dq7x3013601 for ; Wed, 8 Nov 2006 13:52:07 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id kA8Dq3UI012241 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Wed, 8 Nov 2006 13:52:06 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 EADD6DA4E for ; Wed, 8 Nov 2006 13:51:57 +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 42C74474F9 for ; Wed, 8 Nov 2006 13:51:50 +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 CJL90282 (AUTH lyon); Wed, 8 Nov 2006 14:51:49 +0100 (CET) Message-ID: <4551E0F4.7030803@st.com> Date: Wed, 08 Nov 2006 13:52:00 -0000 From: Christophe LYON User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: testsuite gdb.base/constvars: force allocation of local variables 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/msg00039.txt.bz2 Hello, I propose the following patch in order to force allocation of variables 'crass' and 'crisp'. Christophe. 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 */ /*