Hello,

I have -O0 in my command line, which should disable all optimizations, according to the gcc manual. Before that I had no -O option in the command line - I know about code reordering/loop unfolding etc.
This is not the reason, I think...

CodeDwarf


Am 27.11.2010 14:28, schrieb Peter D Kellas:

<snip>
>
> Thanks
> CodeDwarf
>
>
           Ah! I have seen a very similar problem with the GSL library!

          Are you compiling with optimisations? (e.g. -O2 flag, etc)? In my case,
          I tracked down the problem to the reordering the compiler seems to do
          during optimisation. I am guessing the .line and .text segments get out
          of sync if you use optimisations... Removing the -O2 flag cured the
          problem in my case.


          P.

I would agree with Peter Rockett.   I have many years of experience with Fortran programming and have noticed this phenomenon when using debug.
The recommendation was always to compile with optimisation set to its lowest level, normally 0.  This ensures that the lines of code are read in the order in which they appear in source.
I suspect the same is true with C compilers.
 

Regards,
Peter Kellas
------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________ MinGW-users mailing list MinGW-users@lists.sourceforge.net This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe