public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/32444]  New: missing debug information for structure components
@ 2007-06-21  0:51 geoffk at gcc dot gnu dot org
  2007-06-21  1:08 ` [Bug debug/32444] " geoffk at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2007-06-21  0:51 UTC (permalink / raw)
  To: gcc-bugs

Given the following short program,

struct pt
{
  int x, y;
};

struct pt sum(struct pt *p)
{
  struct pt tmp = { 0, 0 };
  int i;
  for (i = 0; i < 100; i++)
    {
      tmp.x += p[i].x;
      tmp.y += p[i].y;
    }
  return tmp;
}

on powerpc-darwin, built with -O2, I see that the main loop is storing tmp.x in
r8 and tmp.y in r10 (or possibly the other way around).  Yet, the debug
information contains no location information for 'tmp'.  A similar thing
happens on i386-darwin where the values are stored in eax and edx.

Also, on i386-darwin, 'i' is also not present in the debug information,
although it is in %ecx.

L2:
        addl    -8(%esi,%ecx,8), %eax
        addl    -4(%esi,%ecx,8), %edx
        addl    $1, %ecx
        cmpl    $101, %ecx
        jne     L2


-- 
           Summary: missing debug information for structure components
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: geoffk at gcc dot gnu dot org


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


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

* [Bug debug/32444] missing debug information for structure components
  2007-06-21  0:51 [Bug debug/32444] New: missing debug information for structure components geoffk at gcc dot gnu dot org
@ 2007-06-21  1:08 ` geoffk at gcc dot gnu dot org
  2007-06-21  1:13 ` geoffk at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2007-06-21  1:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from geoffk at gcc dot gnu dot org  2007-06-21 01:08 -------
Happens even with -O1.  One of the causes is SRA, but there's more...


-- 


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


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

* [Bug debug/32444] missing debug information for structure components
  2007-06-21  0:51 [Bug debug/32444] New: missing debug information for structure components geoffk at gcc dot gnu dot org
  2007-06-21  1:08 ` [Bug debug/32444] " geoffk at gcc dot gnu dot org
@ 2007-06-21  1:13 ` geoffk at gcc dot gnu dot org
  2007-06-21  1:24 ` geoffk at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2007-06-21  1:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from geoffk at gcc dot gnu dot org  2007-06-21 01:13 -------
The problem with 'i' is ivopts.


-- 


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


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

* [Bug debug/32444] missing debug information for structure components
  2007-06-21  0:51 [Bug debug/32444] New: missing debug information for structure components geoffk at gcc dot gnu dot org
  2007-06-21  1:08 ` [Bug debug/32444] " geoffk at gcc dot gnu dot org
  2007-06-21  1:13 ` geoffk at gcc dot gnu dot org
@ 2007-06-21  1:24 ` geoffk at gcc dot gnu dot org
  2007-06-21  9:01 ` [Bug debug/32444] missing debug information for structure components with optimized code pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2007-06-21  1:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from geoffk at gcc dot gnu dot org  2007-06-21 01:24 -------
I split out the problem with 'i' to PR 32445.


-- 


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


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

* [Bug debug/32444] missing debug information for structure components with optimized code
  2007-06-21  0:51 [Bug debug/32444] New: missing debug information for structure components geoffk at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-06-21  1:24 ` geoffk at gcc dot gnu dot org
@ 2007-06-21  9:01 ` pinskia at gcc dot gnu dot org
  2007-06-21  9:03 ` pinskia at gcc dot gnu dot org
  2007-06-24  4:04 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-21  9:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2007-06-21 09:01 -------
First temp is SRA'd so the debugging info should be correct unless tracking is
wrong.  Second iv-opts is messing up the debuging info for i by creating a new
variable.

I think this is a feature we would like to support but is not something we need
to support that well.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
            Summary|missing debug information   |missing debug information
                   |for structure components    |for structure components
                   |                            |with optimized code


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


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

* [Bug debug/32444] missing debug information for structure components with optimized code
  2007-06-21  0:51 [Bug debug/32444] New: missing debug information for structure components geoffk at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-06-21  9:01 ` [Bug debug/32444] missing debug information for structure components with optimized code pinskia at gcc dot gnu dot org
@ 2007-06-21  9:03 ` pinskia at gcc dot gnu dot org
  2007-06-24  4:04 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-21  9:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2007-06-21 09:03 -------
Actually SRA should be ok, because we do keep tracking them on the tree level. 
Daniel Berlin added this code.


-- 


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


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

* [Bug debug/32444] missing debug information for structure components with optimized code
  2007-06-21  0:51 [Bug debug/32444] New: missing debug information for structure components geoffk at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-06-21  9:03 ` pinskia at gcc dot gnu dot org
@ 2007-06-24  4:04 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-06-24  4:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-06-24 04:04 -------
http://gcc.gnu.org/ml/gcc/2005-01/msg00016.html


-- 


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


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

end of thread, other threads:[~2007-06-24  4:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-21  0:51 [Bug debug/32444] New: missing debug information for structure components geoffk at gcc dot gnu dot org
2007-06-21  1:08 ` [Bug debug/32444] " geoffk at gcc dot gnu dot org
2007-06-21  1:13 ` geoffk at gcc dot gnu dot org
2007-06-21  1:24 ` geoffk at gcc dot gnu dot org
2007-06-21  9:01 ` [Bug debug/32444] missing debug information for structure components with optimized code pinskia at gcc dot gnu dot org
2007-06-21  9:03 ` pinskia at gcc dot gnu dot org
2007-06-24  4:04 ` 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).