Mail Archives: djgpp/1995/04/23/19:17:22
> Hi all:
> This may not be a djgpp problem (if not, tell me so and where to gripe)
> but here it is:
> I have a program that uses inline (eg _farptr) functions, so I want to
> compile with optimization (-O or -O2). However, I am getting some weird
> code generation, viz:
>
> int ListProc (WINDOW wnd, MESSAGE msg, PARAM p1, PARAM p2) {
> [snip]
> switch (msg) {
> case CREATE_WINDOW:
> wnd->ct = DFmalloc(sizeof(CTLWINDOW));
> wnd->ct->setting = OFF; // line 53
> [snip]
>
> Under edebug32, it seems that line 53 is the first line that is executed;
> the DFmalloc() line is not executed, and so wnd->ct is NULL and so
> dereferencing it produces an exception.
I don't know wether your using C or C++ (or the version) but the
2.5.7 version of gnu c++ seems to trash the line number debuggin
information.
- Raw text -