This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/29860] New: comment / code incosistency in cfgcleanup.c:flow_find_cross_jump
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Nov 2006 23:28:41 -0000
- Subject: [Bug rtl-optimization/29860] New: comment / code incosistency in cfgcleanup.c:flow_find_cross_jump
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
X-Bugzilla-Reason: CC
http://gcc.gnu.org/ml/gcc/2005-01/msg00700.html
onsideriing this code:
if (onlyjump_p (i2)
|| (returnjump_p (i2) && !side_effects_p (PATTERN (i2))))
{
last2 = i2;
/* Count everything except for unconditional jump as insn. */
if (!simplejump_p (i2) && !returnjump_p (i2) && last1)
ninsns++;
i2 = PREV_INSN (i2);
}
you count unconditional jumps with a clobber, but you don't count
conditional returns (, or even an instruction that solves a travelling
salesman problem and returns if it finds a solution within a given cost bound).
--
Summary: comment / code incosistency in
cfgcleanup.c:flow_find_cross_jump
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amylaar at gcc dot gnu dot org
OtherBugsDependingO 29842
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29860