[PATCH] Quash undefined behavior in ipa-inline-analysis.c

2013-08-13 Thread Marek Polacek
When doing bootstrap with -fsanitize=undefined, I noticed undefined behavior in this file. We basically do 1 32, since NUM_CONDITIONS is #defined to 32, which is not defined. I admit I didn't followed the algorithm at all, but this patch passed bootstrap + regtesting on x86_64-linux. So, ok

Re: [PATCH] Quash undefined behavior in ipa-inline-analysis.c

2013-08-13 Thread Jan Hubicka
When doing bootstrap with -fsanitize=undefined, I noticed undefined behavior in this file. We basically do 1 32, since NUM_CONDITIONS is #defined to 32, which is not defined. I admit I didn't followed the algorithm at all, but this patch passed bootstrap + regtesting on x86_64-linux. So,