This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/27896] New: inefficient lowering for return
- 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: 5 Jun 2006 07:07:01 -0000
- Subject: [Bug tree-optimization/27896] New: inefficient lowering for return
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The .lower dump for this code: int foo (void) { return 1;} looks like:
foo ()
{
goto <D1524>;
<D1524>:;
return 1;
"goto" to the next line is useless, this just increases the memory usage and it
needs extra work to be eliminated in a subsequent pass...
--
Summary: inefficient lowering for return
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dann at godzilla dot ics dot uci dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27896