From: Laur Ivan (Laur.Ivan at domain corvil.com)
Date: Fri 27 Sep 2002 - 17:39:02 IST
A bit of googling says:
------------------------
> Can't find a register in class `CREG' while reloading
> `asm'.
Note that the asm statement says it clobbers "cx", but since ecx is
the only register in class c, so there's no register in which GCC
could store nbytes.
Previous versions of GCC wouldn't detect this problem, and would
silently generate possibly-wrong code.
-----------------------
So it looks you have to do some asm language stuff or replace it with c
code :)
L
> -----Original Message-----
> From: ilug-admin at domain linux.ie [mailto:ilug-admin at domain linux.ie] On Behalf Of
Kevin
> O' Riordan
> Sent: 27 September 2002 17:13
> To: ilug at domain linux.ie
> Subject: Re: [ILUG] ancient as
>
>
> On Setting Orange, the 51st day of Bureaucracy, Laur Ivan muttered:
> >
> > If memory helps, this is to compile some assembly language files.
> > Probably the old "as" could generate binaries, thus the -c
(compile?)
> > option. Probably is safe to remove the "-c" altogether.
>
> Tried it, got:
> /home/kor/linux/linux/include/linux/string.h:388: Can't find a
> register in class `CREG' while reloading `asm'.
> init/main.c: In function `start_kernel':
> init/main.c:357: Can't find a register in class `AREG' while
> reloading `asm'.
> /home/kor/linux/linux/include/linux/string.h:123: Can't find a
> register in class `CREG' while reloading `asm'.
> make: *** [init/main.o] Error 1
>
>
>
> > ...interesting someone is compiling linux 1.0 these days :)
>
> curiosity, boredom, etc. :) Ah, I'll poke at it again on monday.
>
>
> have a good weekend
> -kev
>
>
> --
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription
> information.
> List maintainer: listmaster at domain linux.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:19:08 GMT