This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13764] New: [tree-ssa] g++ creates extra blocks
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2004 07:25:05 -0000
- Subject: [Bug c++/13764] New: [tree-ssa] g++ creates extra blocks
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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