Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Steve Simmons
Wed, 19 Aug 1992 15:22
i960 gcc and "static" memory initialization
Author: Steve Simmons
Date: Wed, 19 Aug 1992 15:22
Date: Wed, 19 Aug 1992 15:22
30 lines
1606 bytes
1606 bytes
We are having an interesting problem with the i960 gcc compiler/linker,
version 1.37 of gcc, Intels release 2.0.
When there are variables declared in the form:
int i = 4 ;
main()
{
printf( "Value of i is %d\n", i ) ;
i = 5 ;
}
we have some problems when debugging. On the first debug pass thru
the program, everything is fine. If we rerun the program without
refreshing the core image (ie, re-downloading), the initial value
of i is 5.
This is correct performance (or rather, allowed performance) under
ANSI C. Nonetheless it makes debugging hell. We'd rather not have
to rewrite the code to dynamically initialize all the variables. Is
there a set of switches or mod package that will handle this?
Please reply to jak@aisinc.com (Jeff Kraudelt). He has email access
but not news access.
--
"If life were fair, the acquisition of a large bosom or a massive inheritance
would have no bearing on your ability to attract the opposite sex, and Dan
Quayle would be making a living asking runny-nosed children, `Do you want
fries with that?'" -- John Cleese, "Corporate Computing" magazine
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads