This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/25791] -O2 execution fails, -O and -g work



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]