public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/36589]  New: [4.4 Regression]: gcc.dg/debug/dwarf2/var1.c scan-assembler xyzzy[^\\\\n\\\\r]+DW_AT_name
@ 2008-06-21 14:26 hjl dot tools at gmail dot com
  2008-06-21 15:50 ` [Bug debug/36589] [4.4 Regression]: No debug info for local static variable at -O0 hjl dot tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-06-21 14:26 UTC (permalink / raw)
  To: gcc-bugs

Revision 136903:

http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01170.html

breaks DWARF at -O0:

FAIL: gcc.dg/debug/dwarf2/var1.c scan-assembler xyzzy[^\\\\n\\\\r]+DW_AT_name


-- 
           Summary: [4.4 Regression]: gcc.dg/debug/dwarf2/var1.c scan-
                    assembler xyzzy[^\\\\n\\\\r]+DW_AT_name
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com


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


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

* [Bug debug/36589] [4.4 Regression]: No debug info for local static variable at -O0
  2008-06-21 14:26 [Bug debug/36589] New: [4.4 Regression]: gcc.dg/debug/dwarf2/var1.c scan-assembler xyzzy[^\\\\n\\\\r]+DW_AT_name hjl dot tools at gmail dot com
@ 2008-06-21 15:50 ` hjl dot tools at gmail dot com
  2008-06-23 13:44 ` hjl dot tools at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-06-21 15:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl dot tools at gmail dot com  2008-06-21 15:49 -------
varpool_output_debug_info has

        /* Local static variables are never seen by check_global_declarations
           so we need to output debug info by hand.  */
        if (DECL_CONTEXT (node->decl)
            && (TREE_CODE (DECL_CONTEXT (node->decl)) == BLOCK
                || TREE_CODE (DECL_CONTEXT (node->decl)) == FUNCTION_DECL)
            && errorcount == 0 && sorrycount == 0)
             (*debug_hooks->global_decl) (node->decl);

This is no longer called with -O0. Should cgraph_output_in_order handle
local static variable?
Index: cgraphunit.c
===================================================================
--- cgraphunit.c        (revision 136905)
+++ cgraphunit.c        (working copy)
@@ -1303,7 +1303,15 @@ cgraph_output_in_order (void)
          break;

        case ORDER_VAR:
-         varpool_assemble_decl (nodes[i].u.v);
+         pv = nodes[i].u.v;
+         varpool_assemble_decl (pv);
+         /* Since check_global_declarations never sees local static
+            variables, we need to output debug info by hand.  */
+       if (DECL_CONTEXT (pv->decl)
+           && (TREE_CODE (DECL_CONTEXT (pv->decl)) == BLOCK
+               || (TREE_CODE (DECL_CONTEXT (pv->decl))
+                   == FUNCTION_DECL)))
+            (*debug_hooks->global_decl) (pv->decl);
          break;

        case ORDER_ASM:


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.4 Regression]:           |[4.4 Regression]: No debug
                   |gcc.dg/debug/dwarf2/var1.c  |info for local static
                   |scan-assembler              |variable at -O0
                   |xyzzy[^\\\\n\\\\r]+DW_AT_nam|
                   |e                           |


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


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

* [Bug debug/36589] [4.4 Regression]: No debug info for local static variable at -O0
  2008-06-21 14:26 [Bug debug/36589] New: [4.4 Regression]: gcc.dg/debug/dwarf2/var1.c scan-assembler xyzzy[^\\\\n\\\\r]+DW_AT_name hjl dot tools at gmail dot com
  2008-06-21 15:50 ` [Bug debug/36589] [4.4 Regression]: No debug info for local static variable at -O0 hjl dot tools at gmail dot com
@ 2008-06-23 13:44 ` hjl dot tools at gmail dot com
  2008-07-04 21:50 ` jsm28 at gcc dot gnu dot org
  2008-07-16 23:15 ` hubicka at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-06-23 13:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2008-06-23 13:44 -------
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01431.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2008-
                   |                            |06/msg01431.html
           Keywords|                            |patch


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


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

* [Bug debug/36589] [4.4 Regression]: No debug info for local static variable at -O0
  2008-06-21 14:26 [Bug debug/36589] New: [4.4 Regression]: gcc.dg/debug/dwarf2/var1.c scan-assembler xyzzy[^\\\\n\\\\r]+DW_AT_name hjl dot tools at gmail dot com
  2008-06-21 15:50 ` [Bug debug/36589] [4.4 Regression]: No debug info for local static variable at -O0 hjl dot tools at gmail dot com
  2008-06-23 13:44 ` hjl dot tools at gmail dot com
@ 2008-07-04 21:50 ` jsm28 at gcc dot gnu dot org
  2008-07-16 23:15 ` hubicka at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 21:50 UTC (permalink / raw)
  To: gcc-bugs



-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.4.0


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


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

* [Bug debug/36589] [4.4 Regression]: No debug info for local static variable at -O0
  2008-06-21 14:26 [Bug debug/36589] New: [4.4 Regression]: gcc.dg/debug/dwarf2/var1.c scan-assembler xyzzy[^\\\\n\\\\r]+DW_AT_name hjl dot tools at gmail dot com
                   ` (2 preceding siblings ...)
  2008-07-04 21:50 ` jsm28 at gcc dot gnu dot org
@ 2008-07-16 23:15 ` hubicka at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2008-07-16 23:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hubicka at gcc dot gnu dot org  2008-07-16 23:14 -------
Fix comitted.


-- 

hubicka at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-07-16 23:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-21 14:26 [Bug debug/36589] New: [4.4 Regression]: gcc.dg/debug/dwarf2/var1.c scan-assembler xyzzy[^\\\\n\\\\r]+DW_AT_name hjl dot tools at gmail dot com
2008-06-21 15:50 ` [Bug debug/36589] [4.4 Regression]: No debug info for local static variable at -O0 hjl dot tools at gmail dot com
2008-06-23 13:44 ` hjl dot tools at gmail dot com
2008-07-04 21:50 ` jsm28 at gcc dot gnu dot org
2008-07-16 23:15 ` hubicka 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).