This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/15171] -finit-local-zero tricks g77 into emitting erroneous debug info
- From: "Edward dot Baudrez at UGent dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Apr 2004 07:19:41 -0000
- Subject: [Bug debug/15171] -finit-local-zero tricks g77 into emitting erroneous debug info
- References: <20040427164412.15171.Edward.Baudrez@UGent.be>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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