[AD] Fw: internal error in mingw32 compiler...

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


i got help from mumit khan. looks like the porting can continue now. great!
i am forwarding this to let you know about it.
    -henrik

----- Original Message -----
From: Mumit Khan <khan@xxxxxxxxxx>
To: Henrik Stokseth <hstokset@xxxxxxxxxx>
Cc: <gcc-bugs@xxxxxxxxxx>
Sent: Saturday, November 27, 1999 8:43 PM
Subject: Re: internal error in mingw32 compiler...


> Thanks for the testcase that shows the bug. The problem code is the
> following:
>
>     __inline __attribute__(( dllimport )) void __attribute__((__cdecl__))
>     bmp_write24 (unsigned long addr, int c)
>       {
>          unsigned char *p = (unsigned char *)addr;
>
>          p[0] = c & 0xFF;
>          p[1] = (c>>8) & 0xFF;
>          p[2] = (c>>16) & 0xFF;
>       }
>
> around line 238 of alconfig.h.
>
> GCC currently cannot handle dllimport attribute on inline functions, and
> instead of issuing an error, it causes an internal error.
>
> I hope to have this fixed in the next release of GCC. For now, you can
> either:
>
> (1) compile with -mnop-fun-dllimport --  it's a good workaround, or
> (2) remove the dllimport attribute from inline functions -- which is
> perhaps not something that you want to do.
>
> Regards,
> Mumit




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