public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23618] New: GCC seems to generate line number information for the same line in two places
@ 2005-08-29 8:59 tommi dot hoynalanmaa at iki dot fi
2005-08-29 9:01 ` [Bug c/23618] " tommi dot hoynalanmaa at iki dot fi
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: tommi dot hoynalanmaa at iki dot fi @ 2005-08-29 8:59 UTC (permalink / raw)
To: gcc-bugs
When compiling a function with an empty body, e.g.
int MyFunc(void)
{
}
GCC seems to add line number information for the line containing the opening
bracket in two different places.
Here is an example assembler output:
----
.globl MyFunc
.type MyFunc, @function
MyFunc:
.LFB3:
.loc 1 5 0
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
.loc 1 5 0
popl %ebp
ret
.LFE3:
----
Line number information for line 5 (the opening bracket) is seems to be added in
two places.
--
Summary: GCC seems to generate line number information for the
same line in two places
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tommi dot hoynalanmaa at iki dot fi
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23618
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/23618] GCC seems to generate line number information for the same line in two places
2005-08-29 8:59 [Bug c/23618] New: GCC seems to generate line number information for the same line in two places tommi dot hoynalanmaa at iki dot fi
@ 2005-08-29 9:01 ` tommi dot hoynalanmaa at iki dot fi
2005-08-29 9:02 ` tommi dot hoynalanmaa at iki dot fi
2005-08-29 12:46 ` [Bug debug/23618] " pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tommi dot hoynalanmaa at iki dot fi @ 2005-08-29 9:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tommi dot hoynalanmaa at iki dot fi 2005-08-29 08:59 -------
Created an attachment (id=9612)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9612&action=view)
Preprocessed source to generate the bug
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23618
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/23618] GCC seems to generate line number information for the same line in two places
2005-08-29 8:59 [Bug c/23618] New: GCC seems to generate line number information for the same line in two places tommi dot hoynalanmaa at iki dot fi
2005-08-29 9:01 ` [Bug c/23618] " tommi dot hoynalanmaa at iki dot fi
@ 2005-08-29 9:02 ` tommi dot hoynalanmaa at iki dot fi
2005-08-29 12:46 ` [Bug debug/23618] " pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tommi dot hoynalanmaa at iki dot fi @ 2005-08-29 9:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tommi dot hoynalanmaa at iki dot fi 2005-08-29 09:01 -------
Here is the output of "gcc -v" on my system:
---
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-9ubuntu5)
---
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23618
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/23618] GCC seems to generate line number information for the same line in two places
2005-08-29 8:59 [Bug c/23618] New: GCC seems to generate line number information for the same line in two places tommi dot hoynalanmaa at iki dot fi
2005-08-29 9:01 ` [Bug c/23618] " tommi dot hoynalanmaa at iki dot fi
2005-08-29 9:02 ` tommi dot hoynalanmaa at iki dot fi
@ 2005-08-29 12:46 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-29 12:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-29 12:40 -------
Fixed for 4.0.0:
MyFunc:
.LFB2:
.file 1 "debugtest1.c"
.loc 1 5 0
pushl %ebp
.LCFI0:
movl %esp, %ebp
.LCFI1:
.loc 1 6 0
popl %ebp
ret
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|c |debug
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23618
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-29 12:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-29 8:59 [Bug c/23618] New: GCC seems to generate line number information for the same line in two places tommi dot hoynalanmaa at iki dot fi
2005-08-29 9:01 ` [Bug c/23618] " tommi dot hoynalanmaa at iki dot fi
2005-08-29 9:02 ` tommi dot hoynalanmaa at iki dot fi
2005-08-29 12:46 ` [Bug debug/23618] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).