From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18106 invoked by alias); 19 Jan 2006 18:23:26 -0000 Received: (qmail 18077 invoked by uid 48); 19 Jan 2006 18:23:22 -0000 Date: Thu, 19 Jan 2006 18:23:00 -0000 Message-ID: <20060119182322.18076.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/25791] -O2 execution fails, -O and -g work In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dick_guertin at yahoo dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-01/txt/msg01968.txt.bz2 List-Id: ------- Comment #25 from dick_guertin at yahoo dot com 2006-01-19 18:23 ------- In your closing arguments you said these static object need to be members of an array. How would I do that? Here's a sample from comm.c where there is a mixture of objects: - - - - static struct sckw sckw58 = { 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, 0,0,48,64, 0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, MALL, QNORMAL }; static NKW PRT = SCKW_TOKEN("IF",xif,NKWFSET+NKWFCRTN); static NKW sckw59 = SCKW_TOKEN("SET",set,NKWFSET+NKWFCRTN); static struct sckw sckw60 = { 0xD9,0xC5,0xC1,0xC4,0x40,0x40,0x40,0x40, /* READ */ 0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40, 0,4,48,0, 160,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, MTOKEN, READ }; - - - - etc. I'm perfectly willing to 'enclose' this entire bundle if I knew how. But I'm not sure how. Specific members inside have specific names, like PRT above. These have to be 'referenced' from outside the array. I don't think we can give names to array members. Remember, we need to 'reference' certain members, which occur at different places throughout the collection of static objects. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25791