This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/55018] CDDCE pass is too aggressive sometimes with infinite loops and with some builtin functions
- From: "nmorey at kalray dot eu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Oct 2012 08:48:52 +0000
- Subject: [Bug tree-optimization/55018] CDDCE pass is too aggressive sometimes with infinite loops and with some builtin functions
- Auto-submitted: auto-generated
- References: <bug-55018-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55018
--- Comment #5 from Nicolas Morey-Chaisemartin <nmorey at kalray dot eu> 2012-10-22 08:48:52 UTC ---
It does if it takes occurrence as a parameter:
#include <stdio.h>
extern void myFunc(int);
void Sender_signal(int Connect)
{
int State = 3;
int occurrence = 0;
if (Connect) {
State = 0;
}
start:
if (Connect) {
goto start;
}
occurrence++;
if(State != 2){
myFunc(occurrence);
}
goto start;
}