public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/37075]  New: gimple 003t.original dump duplicates initialisation statements
@ 2008-08-11  2:04 bje at gcc dot gnu dot org
  2008-08-11  2:09 ` [Bug middle-end/37075] " pinskia at gcc dot gnu dot org
  2008-08-11  2:18 ` bje at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: bje at gcc dot gnu dot org @ 2008-08-11  2:04 UTC (permalink / raw)
  To: gcc-bugs

Running gcc with -fdump-tree-all to get the gimple dumps, I see duplicate
statements in the .003t.original dump:

[bug.c]

int foo () { char *c = 0; return 0; }

[bug.c.003t.original]

;; Function foo (foo)
;; enabled by -tree-original

{
  char * c = 0B;

    char * c = 0B;
  return 0;
}

(the fact that the second statement is misaligned is a minor nit).


-- 
           Summary: gimple 003t.original dump duplicates initialisation
                    statements
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bje at gcc dot gnu dot org
  GCC host triplet: powerpc64-linux


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


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

* [Bug middle-end/37075] gimple 003t.original dump duplicates initialisation statements
  2008-08-11  2:04 [Bug middle-end/37075] New: gimple 003t.original dump duplicates initialisation statements bje at gcc dot gnu dot org
@ 2008-08-11  2:09 ` pinskia at gcc dot gnu dot org
  2008-08-11  2:18 ` bje at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-11  2:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-08-11 02:08 -------
This comes down to DECL_EXPR and BIND_EXPR.  The BIND_EXPR is printing out the
first "char * c = 0B;" while the DECL_EXPR is printing out the second one.

This is expected as not all decls have a DECL_EXPR, only ones which have an
initialization.


-- 


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


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

* [Bug middle-end/37075] gimple 003t.original dump duplicates initialisation statements
  2008-08-11  2:04 [Bug middle-end/37075] New: gimple 003t.original dump duplicates initialisation statements bje at gcc dot gnu dot org
  2008-08-11  2:09 ` [Bug middle-end/37075] " pinskia at gcc dot gnu dot org
@ 2008-08-11  2:18 ` bje at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: bje at gcc dot gnu dot org @ 2008-08-11  2:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bje at gcc dot gnu dot org  2008-08-11 02:17 -------
Thanks for the clarification, Andrew.


-- 

bje at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2008-08-11  2:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-11  2:04 [Bug middle-end/37075] New: gimple 003t.original dump duplicates initialisation statements bje at gcc dot gnu dot org
2008-08-11  2:09 ` [Bug middle-end/37075] " pinskia at gcc dot gnu dot org
2008-08-11  2:18 ` bje 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).