Hi all,

I made small test program for inline with alloca (list at the bottom),
and try to compile it on several platforms including sparc, i686 etc,
but all warn 'function using alloca cannot be inline'.

So I propose to make sysdepCallMethod for m68k back with macro version.

Kiyo

<<< My compile script >>>
gcc -W -Wall -Winline -S test.c -O


<<< test program >>>
#include <stdio.h>

static inline int testinline(n)
{
        int dynarray[n];
        int i;

        for (i=0; i<n; i++)
                dynarray[i] = i + 1;

        return (dynarray[n-1]);
}

int
main()
{
        int i;

        i = testinline(5);
        printf("i = %d\n", i);
}

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to