Mail Archives: djgpp/1997/05/07/06:34:22
On 6 May 97 17:55:44 +1000, hoodj AT topaz DOT cqu DOT edu DOT au (Adoxa) wrote:
> The program below produces this:
>
> test.c:39: internal error--insn does not satisfy its constraints:
> when compiled with "gcc -O2 test.c -s -otest.exe". It compiles fine
>
> --- Begin "test.c" ---
> #include <stdio.h>
> #include <time.h>
>
/* Workaround. */
static inline
delta (uclock_t _start)
{
return uclock () - _start;
}
> int main()
> {
> int j, col, tally = 0;
> uclock_t start, calib;
>
> calib = uclock();
calib = delta (0);
> for (j = 0; j <= 9*255; ++j)
> {
> tally += j;
> }
> calib = uclock() - calib;
calib = delta (calib);
etc.
I think it is bug, or maybe feature of gcc or gcc for i[34]86.
- Raw text -