This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/15171] -finit-local-zero tricks g77 into emitting erroneous debug info


------- Additional Comments From Edward dot Baudrez at UGent dot be  2004-04-29 07:19 -------
(In reply to comment #2)
> Invalid as the debugging info needs to be there as you are clearing out the array.

My apologies. Compiler's behaviour is consistent indeed (but slightly
confusing), as can be verified from the following code snippet
1      print *,'first print statement'
2      pi=3.14159236
3      print *,'last print statement'
4      stop
5      end
I just found it confusing, while stepping the program with the debugger, that
the debugger first jumps to line 2 (to initialize pi to zero, but this is not
apparent except in disassembly), and then returns to line 1 to execute the
program in the normal way.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15171


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]