delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/07/06:34:22

From: bukinm AT inp DOT nsk DOT su (Michael Bukin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: BUG: uclock(), long long, gcc ?
Date: Tue, 06 May 1997 11:34:39 GMT
Organization: BINP SD RAS
Lines: 37
Message-ID: <33701461.3104033@news-win.inp.nsk.su>
References: <1997May6 DOT 175544 AT topaz>
Reply-To: bukinm AT inp DOT nsk DOT su
NNTP-Posting-Host: csd-bsdi.inp.nsk.su
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019