public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23872] New: .t02.original dump weirdness
@ 2005-09-13 20:24 dann at godzilla dot ics dot uci dot edu
  2005-09-13 20:28 ` [Bug c/23872] " pinskia at gcc dot gnu dot org
  2005-09-13 20:45 ` dann at godzilla dot ics dot uci dot edu
  0 siblings, 2 replies; 5+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2005-09-13 20:24 UTC (permalink / raw)
  To: gcc-bugs

Using gcc -O2 -fdump-tree-all -S 
to compile: 

int bar (void) {   return 0;}

int foo (int reject) {   int result = 0;   return result;}

the .t02.original dump looks like:
;; Function bar (bar)
;; enabled by -tree-original
{
  return 0;
}
;; Function foo (foo)
;; enabled by -tree-original
{
  int result = 0;

    int result = 0; <--- this line appears twice...
  return result;
}

If the order of the 2 functions is reversed in the file then the dump looks like:

;; Function foo (foo)
;; enabled by -tree-original
{
  int result = 0;
  <STATEMENT_LIST>  <--- the return does not appear...
}
;; Function bar (bar)
;; enabled by -tree-original
{
  return 0;
}

Using just -fdump-tree-original then the dump for "foo" always looks like the
second version.

-- 
           Summary: .t02.original dump weirdness
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-23872-1008@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-08-16 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-13 20:24 [Bug middle-end/23872] New: .t02.original dump weirdness dann at godzilla dot ics dot uci dot edu
2005-09-13 20:28 ` [Bug c/23872] " pinskia at gcc dot gnu dot org
2005-09-13 20:45 ` dann at godzilla dot ics dot uci dot edu
     [not found] <bug-23872-1008@http.gcc.gnu.org/bugzilla/>
2005-12-28  6:04 ` pinskia at gcc dot gnu dot org
2007-08-16 14:40 ` manu 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).