public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/52658] New: RECORD_TYPE in generic tree dump file with non-complete FIELD_DECL tree node
@ 2012-03-21 20:40 saturnman at 163 dot com
  2012-03-21 21:12 ` [Bug debug/52658] " saturnman at 163 dot com
  2024-03-17 22:19 ` [Bug debug/52658] struct/union types don't print out all of the field with -fdump-tree-original-raw pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: saturnman at 163 dot com @ 2012-03-21 20:40 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52658
           Summary: RECORD_TYPE in generic tree dump file with
                    non-complete FIELD_DECL tree node
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: saturnman@163.com


When dumping tree with parameter -ftree-dump-original-raw. class type with
RECORD_TYPE tree node. I just can't find all FIELD_DECL of all its members. 
to fix this problem is quite easy
add one line to tree-dump.c just below line number 535
just add "dump_child ("chan",TREE_CHAIN(t));" 
now this problem goes away. :-)


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

* [Bug debug/52658] RECORD_TYPE in generic tree dump file with non-complete FIELD_DECL tree node
  2012-03-21 20:40 [Bug debug/52658] New: RECORD_TYPE in generic tree dump file with non-complete FIELD_DECL tree node saturnman at 163 dot com
@ 2012-03-21 21:12 ` saturnman at 163 dot com
  2024-03-17 22:19 ` [Bug debug/52658] struct/union types don't print out all of the field with -fdump-tree-original-raw pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: saturnman at 163 dot com @ 2012-03-21 21:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from saturnman <saturnman at 163 dot com> 2012-03-21 20:40:09 UTC ---
can any one add this FIX to code base. I just don't has an account, thx.


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

* [Bug debug/52658] struct/union types don't print out all of the field with -fdump-tree-original-raw
  2012-03-21 20:40 [Bug debug/52658] New: RECORD_TYPE in generic tree dump file with non-complete FIELD_DECL tree node saturnman at 163 dot com
  2012-03-21 21:12 ` [Bug debug/52658] " saturnman at 163 dot com
@ 2024-03-17 22:19 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-17 22:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52658

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
            Summary|RECORD_TYPE in generic tree |struct/union types don't
                   |dump file with non-complete |print out all of the field
                   |FIELD_DECL tree node        |with
                   |                            |-fdump-tree-original-raw
   Last reconfirmed|                            |2024-03-17

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

Simplified testcase:
```
struct a
{ int field1;int field2;};
int f(struct a b)
{
        return b.field1;
}
```

Only the first field1 shows up in the dump even though `struct a` contains
field2 too.

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

end of thread, other threads:[~2024-03-17 22:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21 20:40 [Bug debug/52658] New: RECORD_TYPE in generic tree dump file with non-complete FIELD_DECL tree node saturnman at 163 dot com
2012-03-21 21:12 ` [Bug debug/52658] " saturnman at 163 dot com
2024-03-17 22:19 ` [Bug debug/52658] struct/union types don't print out all of the field with -fdump-tree-original-raw pinskia at gcc dot gnu.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).