Re: [AD] allegro-4.2.0 compilation error with gcc-4.1.2

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sat, 2006-07-01 at 12:05 +0200, Thomas Klausner wrote:
> On Tue, Jun 27, 2006 at 10:36:27PM +0200, Thomas Klausner wrote:
> > I tried compiling allegro-4.2.0 under NetBSD-3.99.21/i386
> > with gcc (GCC) 4.1.2 20060603 prerelease (NetBSD nb1 20060602).
> > It failed with:
> > ./src/math3d.c: In function 'matrix_mul':
> > include/allegro/platform/al386gcc.h:209: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
> > include/allegro/platform/al386gcc.h:209: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
> 
> Matthew R. Green came up with the attached patch, which fixes
> the compilation problem. Is it correct? If not, what would
> be a correct patch?
>  Thomas

Personally, I never could understand gcc's inline asm - so it would be
helpful if you could explain the patch a bit. What did change in 4.1,
and how are you fixing it?

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/