public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/12267] New: [3.4 regression] function-at-a-time generates stabs in bad order
@ 2003-09-12 18:50 mec at shout dot net
  2003-09-12 18:52 ` [Bug debug/12267] " mec at shout dot net
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: mec at shout dot net @ 2003-09-12 18:50 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.4 regression] function-at-a-time generates stabs in
                    bad order
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P1
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mec at shout dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

I am seeing a regression in debug info with this patch:

Fri Sep  5 07:35:16 CEST 2003  Jan Hubicka  <jh@suse.cz>

        * opts.c (decode_options): Enable unit-at-a-time at -O2.
        * params.def (max-inline-insns-single): Set to 500
        (max-inline-insns-auto): Set to 150
        * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.

I have a sample program which I compile with "gcc -gstabs+ -O2 -S".
The sample program and the assembly output are attached.

The problem happens at the end of main:

.LM31:
        ret
        .size   main, .-main
        .stabs  "factorial:F(0,3)",36,0,93,factorial
.Lscope7:
        .stabs  "",36,0,0,.Lscope7-main
        .text
        .stabs "",100,0,0,.Letext
.Letext:
        .section        .note.GNU-stack,"",@progbits
        .ident  "GCC: (GNU) 3.4 20030905 (experimental)"

The bad line is the stab for "factorial:F(0,3)" which occurs in the terminal
portion of main, between ".size main, .-main" and "stabs
"",36,0,0,.Lscope7-main".  This messes up the gdb block table for "main",
causing a regression in the gdb test script gdb.base/break.exp.

In the source file, main comes first, but in the object file, factorial is
emitted first.  It looks like a scrap of "factorial" was left behind when it was
rearranged to be omitted before "main".


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2004-06-12 22:12 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-12 18:50 [Bug debug/12267] New: [3.4 regression] function-at-a-time generates stabs in bad order mec at shout dot net
2003-09-12 18:52 ` [Bug debug/12267] " mec at shout dot net
2003-09-12 18:53 ` mec at shout dot net
2003-09-12 18:54 ` mec at shout dot net
2003-09-12 18:54 ` mec at shout dot net
2003-09-12 19:06 ` bangerth at dealii dot org
2003-09-12 19:11 ` bangerth at dealii dot org
2003-09-12 21:02 ` mec at shout dot net
2003-09-18  4:26 ` pinskia at gcc dot gnu dot org
2003-11-29  2:06 ` pinskia at gcc dot gnu dot org
2003-11-30 17:48 ` mec at shout dot net
2003-12-01  6:45 ` pinskia at gcc dot gnu dot org
2003-12-01 19:07 ` mec at shout dot net
2003-12-01 19:12 ` pinskia at gcc dot gnu dot org
2003-12-01 19:33 ` zack at codesourcery dot com
2003-12-06  9:29 ` pinskia at gcc dot gnu dot org
2003-12-29 17:50 ` pinskia at gcc dot gnu dot org
2004-01-06  5:14 ` pinskia at gcc dot gnu dot org
2004-03-16 20:57 ` [Bug debug/12267] [3.4/3.5 " zack at gcc dot gnu dot org
2004-03-21 17:55 ` mmitchel at gcc dot gnu dot org
2004-03-23 23:48 ` cvs-commit at gcc dot gnu dot org
2004-03-23 23:51 ` [Bug debug/12267] [3.4 " zack at gcc dot gnu dot org
2004-06-01  4:23 ` zack at gcc dot gnu dot org
2004-06-12 22:12 ` mmitchel 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).