------- Comment #12 from pinskia at gcc dot gnu dot org 2006-02-20 04:58 ------- Here is a testcase independent of IV-OPTs: void abort(void); int printf(const char *format, ...);
__attribute__((noinline)) void gen_rtx_CONST_INT(long long x) { if (-x > 10) abort(); } __attribute__((noinline)) int alpha_expand_prologue(long frame_size) { unsigned long long a; int probed; if (frame_size <= 1) return; unsigned long long b = -2; a = -2; do { int a1 = a; probed = -a1; printf("probed = %d, frame_size = %ld\n", probed, frame_size); gen_rtx_CONST_INT (a1); a -= 2; a1 = -a; probed = a1; } while (probed < frame_size); } int main(void) { alpha_expand_prologue(10); return 0; } --------- I tried this on 4.1.0 and could not reproduce it there, though my 4.1.0 is from 20060208. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org BugsThisDependsOn|25985, 26304 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26361