www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000169

When Created: 07/26/1997 01:18:17
Against DJGPP version: 2.01
By whom: schmit@pacbell.net
Abstract: Not compiling lines in order
I have a file which calls a function (in a different file) Line3d.  It is a very basic function.  
When I run this program under rhide, it crashes.  I stepped through and found 
the error to be at this function.  I first commented out the lines calling
this function.  This fixed it.  I undid that and the I opened the file 
containing the function and commented out all lines in the function except 
for variable declarations, the program crashed.  I then tried stepping through
(instead of over) the function.  I found when the function was called, the 
current position jumped up to a specific line in the same file, NOT to the other
file containing the file.  It happened to be the #include lines, although I know
that I can move these and it will still jump to the same postion in the file!

Note added: 07/26/1997 11:43:33
By whom: schmit@pacbell.net
Please email me if a fix is found or if anyone else has this same problem.

Note added: 11/18/1997 14:07:54
By whom: demmer@lstm.ruhr-uni-bochum.de
You probably used -O3, so the compiler
inlines some functions. Recompile with -O2 or
less and see where it crashes. The inlining
is a feature, not a bug.

Closed on 04/12/1999 11:00:58: Not a bug: optimizer rearranges code at will.
By whom: eliz@is.elta.co.il



  webmaster     delorie software   privacy  
  Copyright © 2010   by DJ Delorie     Updated Jul 2010