[cfe-commits] [PATCH][Borland] - enable some MS keywords which are shared with Borland extensions

dawn at burble.org dawn at burble.org
Wed Sep 8 15:10:44 PDT 2010


None of the extensions you listed below are on my list.  The only
remaining NYI (not yet implemented) keyword extensions which Borland and MS
share are:

    1. __int8 __int16 __int32 __int64
    2. __try __except __finally
	(this one scares me, so I hope you get to it first :-) )

There are also several NYI compiler options, __declspec()s and #pragmas
which Borland may have adopted from MS - I'll check on that.
Borland also has its own variation of some of the extensions (like
__asm) which will need some tweaking.

-Dawn

On Wed, Sep 08, 2010 at 05:21:28PM -0400, Francois Pichet wrote:
> Hi .. Are you planning to actually implement Microsoft extensions?
> If so that's great but we should make sure not to duplicate work
> 
> 
> Here is the tasks on my list:
> 
> 1. flexible array member in union
> 
> example:
> typedef struct _PROPERTYINSTEX
> {
>    WORD Length;
>     union
>    {
>        BYTE Byte[];
>        WORD Word[];
>        DWORD Dword[];
>        LARGE_INTEGER LargeInt[];
>        SYSTEMTIME SysTime[];
> 
>    };
> } PROPERTYINSTEX;
> 
> 
> 2. clang must parse this: (superfluous A::)
>     class A {
>         int A::f() { return 0; }
>      };
> 
> 
> 3. microsoft enum support:
>  -clang must parse this:
>     enum FOO {
>          a = (FOO) 3
>      };
>  - forward enum must have an underlying type. (int)
>  - support enum FOO : int {};
> 
> 4. MSVC Compiler Intrinsics
>    ex: __noop
> 
> 
> On Wed, Sep 8, 2010 at 5:07 PM,  <dawn at burble.org> wrote:
> >
> > There are several MS extensions supported by the Borland compiler.  This
> > adds support for a few of those (with more soon to come).  Please review.
> >
> > Thanks,
> > -Dawn
> >
> > _______________________________________________
> > cfe-commits mailing list
> > cfe-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> >
> >



More information about the cfe-commits mailing list