This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13764] New: [tree-ssa] g++ creates extra blocks


This function: 

void bar (void)
{
  int a;
}

when compiled with g++
is dumped as: 

;; Function void bar() (_Z3barv)
;; enabled by -tree-original

{
   { // extra block, should not be needed
      int a
   } 
}

when compiled with gcc 

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

{
   int a
}


The extra blocks created are also confirmed by -fmem-report:
for gcc:
blocks                     3        132
for g++:
blocks                     5        220

-- 
           Summary: [tree-ssa] g++ creates extra blocks
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]