Dimitar Zhekov wrote:
Hi.
GJ>> I'm using gcc 3.3 (but this happens as well with gcc GJ>> 3.2), fdrivers/svga24.c:259: error: can't find a GJ>> register in class `AD_REGS' while reloading `asm' GJ>> make[1]: *** [fdrivers/svga24.o] Error 1
MAF> There are two possible workarounds: MAF> Use -O1 as suggested by Andris MAF> Not use the specific gcc macro as suggested by Guillem MAF> Really I don't like any, are there some people here MAF> who knows assembler?
Well I can write a few hundred lines in Intel syntax and understand AT&T syntax, but the problem is not with the assembler code itself, it's valid. Seems that gcc runs out of registers or something. It may be of help if we replace some of the hardcoded register names in asm with generic ones, such as r0, r1... if gcc asm supports such a feature.
I'm using the gcc-3.2.3 included in rock-linux-2.x.y (it's the standard gcc + the IBM stack protector security patch) and have no problems at all. Everything compiles and works.
I used gcc-3.2.2 included in Mandrake 9.1 and see the error, but I don't see it in DJGPP with gcc-3.2, so...
I will probably release GRX 2.4.6 and make a note in the "know problems" page to recomend to use -O1 if the error appears.