Bug 14472 - [tree-ssa] [regression] no sib calling for enum to int functions
Summary: [tree-ssa] [regression] no sib calling for enum to int functions
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: tree-ssa
: P2 minor
Target Milestone: tree-ssa
Assignee: Not yet assigned to anyone
URL:
Keywords: missed-optimization, TREE
Depends on: 14441
Blocks: 12454
  Show dependency treegraph
 
Reported: 2004-03-08 01:31 UTC by Andrew Pinski
Modified: 2023-12-31 18:29 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-04-23 11:05:51


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2004-03-08 01:31:37 UTC
enum t
{
  GS_OK,
  GS_DONE
};
enum t f();
int g()
{
  return f();
}
Comment 1 Andrew Pinski 2004-03-14 22:11:27 UTC
Confirmed.
Comment 2 Andrew Pinski 2004-05-07 01:23:18 UTC
This is a dup of bug 14441.

*** This bug has been marked as a duplicate of 14441 ***
Comment 3 GCC Commits 2004-05-14 18:29:12 UTC
Subject: Bug 14472

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	steven@gcc.gnu.org	2004-05-14 18:29:09

Modified files:
	gcc            : ChangeLog tree-tailcall.c 

Log message:
	PR opt/14472
	* tree-tailcall.c (process_assignment): Use STRIP_NOPS to
	ignore type conversions that do not inhibit tail calling.
	(find_tail_calls): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3657&r2=2.3658
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-tailcall.c.diff?cvsroot=gcc&r1=2.1&r2=2.2

Comment 4 Steven Bosscher 2004-05-14 18:37:35 UTC
reopening because this is not a dup of 14441... 
Comment 5 Steven Bosscher 2004-05-14 18:38:09 UTC
...and closing, because I fixed this one with the patch in the audit trail.