[Bug c/23618] New: GCC seems to generate line number information for the same line in two places
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
[Bug c/23618] GCC seems to generate line number information for the same line in two places
--- 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
[Bug c/23618] GCC seems to generate line number information for the same line in two places
--- 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