Mail Archives: djgpp/2000/03/18/01:14:00
I tried the patches also and ran into the same problem you are seeing,
the solution was obvious after the fact. If the assembler says it
shouldn't be there then just remove it. The cause of the problem has
to do with the assembler/compiler automagically tagging the register
as dirty and it apparently resents us trying to tell it what to do in
cases like that.
here is what the working version on my system looks like.
: "=r" ((void *)s), "=r" ((void *)d), "=r" ((int)w)/*,"=cx"
(dummy)*/
: "0" ((void *)s), "1" ((void *)d), "2" ((int)w), "c"
((int)shift)
: "ax"
The "c" also refers to the cx/ecx register so that is all the notice
the compiler wants or needs.
Regards,
Robert E Bruce
Maurice Lombardi <Maurice DOT Lombardi AT ujf-grenoble DOT fr> wrote:
>Dieter Buerssner a écrit :
>>
>> Maurice Lombardi wrote:
>>
>> >Well... I have applied the two patches, compiled (no more error message)
>> >and run the tests contained in the grx23/test subdirectory. Three tests
>> >fails with a SIGSEGV error: blittest, curstest, and imgtest. Using rhide
>> >I find that the error in curstest is in the function __GR_shift_scanline
>> >contained in grx23/src/utils/shifscl.c, in the asm section which has
>> >been patched with patgrx23.diff. I cannot say more since I know
>> >absolutely nothing about AT&T assembly syntax. Anybody knows ???
>>
>> This may be unrelated, but have you also applied the update patches
>> that can be found on the grx home page?
>
>no but applying them changes nothing
>
>> I didn't apply any offical patches to shiftscl.c, but rather tried
>> the patch I append. The test programs you mention seem to work here
>> in a full screen DOS window in 16 color mode (and in other color modes
>> as weel, but I think, then that function won't be used) with the
>> VESA driver. One other change I made, that could be related, is
>> to set the optimization options to -O only (but I kept
>> -fomit-frame-pointer).
>
>OK, It works now with your patch (even with -O6, and 256 or 64k colors), but I
>need to apply the other patches of Ian Miller contained in patgrx23.diff and
>grx23asm.diff referred to in the DJGPP FAQ (8.17) (otherwise it does not
>compile).
>Thanks !
- Raw text -