Mail Archives: djgpp/1997/01/23/02:26:31
On Wed, 22 Jan 1997 frazer AT rtp DOT ericsson DOT se wrote:
> I am having problems with GDB and static variables. GDB seems
> to have problems with debugging information for uninitialized
> static variables. Here is a test program which exhibits the
> strangeness:
[snip]
> Now I compile with DJGPP v2.01 and GCC 2.7.2.1:
>
> C:\TEST>gcc -c -m486 -Wall -g -o main.o main.c
Does the same happen if you compile without -m486? Maybe that switch
causes gcc to optimize the code, whereby it's OK if the code isn't
exactly like the source.
- Raw text -