linux-mips
[Top] [All Lists]

Re: [PATCH] gcc 3.4 drops "accum" clobber, replace with "hi" in time.c

To: "Bradley D. LaRonde" <brad@laronde.org>
Subject: Re: [PATCH] gcc 3.4 drops "accum" clobber, replace with "hi" in time.c
From: Eric Christopher <echristo@redhat.com>
Date: Mon, 12 Apr 2004 18:02:08 -0700
Cc: linux-mips@linux-mips.org
In-reply-to: <048e01c420f1$ad4ae3b0$8d01010a@prefect>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Pine.GSO.4.10.10404122244110.8735-100000@helios.et.put.poznan.pl> <20040412231309.GA702@linux-mips.org> <03f301c420e7$d8de2d70$8d01010a@prefect> <048e01c420f1$ad4ae3b0$8d01010a@prefect>
Sender: linux-mips-bounce@linux-mips.org
On Mon, 2004-04-12 at 17:53, Bradley D. LaRonde wrote:
> Uh oh, with this patch:
> 
> ...
> time.c: In function `fixed_rate_gettimeoffset':
> time.c:242: error: can't find a register in class `HI_REG' while reloading
> `asm'
> ...

> >
> >         /*
> >          * Due to possible jiffies inconsistencies, we need to check
> > @@ -339,7 +339,7 @@
> >                                 : "r" (timerhi), "m" (timerlo),
> >                                   "r" (tmp), "r" (USECS_PER_JIFFY),
> >                                   "r" (USECS_PER_JIFFY_FRAC)
> > -                               : "hi", "lo", "accum");
> > +                               : "hi", "lo", "hi");
> >                         cached_quotient = quotient;


Maybe this hunk where you use "hi" twice for the same asm statement?

-eric

-- 
Eric Christopher <echristo@redhat.com>


<Prev in Thread] Current Thread [Next in Thread>