Re: [Tinycc-devel] please ignore execvl issure ...
$uname -a FreeBSD mybsd.zsoft.com 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #3: Thu Jun 27 20:00:17 CST 2013 ***@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL i386 $grep __aligned /usr/include/machine/signal.h int sc_fpstate[128] __aligned(16); >>#define __aligned(N) __attribute__ ((aligned (N))) works like a charm ! thanks! e^(π.i) + 1 = 0 ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] please ignore execvl issure ...
What is the machine you are using? tcc recognize the __attribute__ ((aligned(X))) syntax but not __aligned. So you can do a #define __aligned(N) __attribute__ ((aligned (N))) before any include in the mean time. I'm not sure we should accept all kind of code annotation. This kind of annotation should be guarded by a #if COMPILERX since this is not standard C. Best regards, Thomas ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] please ignore execvl issure ...
在 2014-03-08 18:44:06,"Thomas Preud'homme" 写道: >Le mercredi 5 mars 2014, 13:13:43 z_axis a écrit : >> In file included from /usr/include/signal.h:38: >> In file included from /usr/include/sys/signal.h:46: >> /usr/include/machine/signal.h:119: error: ',' expected (got "__aligned") > >I tried with your code and I don't have this error. Which version of tcc are >you using? Could you give us the preprocessed file as output by tcc -E? > >> >> #!tcc -run > >How can this even run? You should give the complete path to tcc. > >Best regards, > >Thomas wmi.c-E Description: Binary data ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] please ignore execvl issure ...
Le mercredi 5 mars 2014, 13:13:43 z_axis a écrit : > In file included from /usr/include/signal.h:38: > In file included from /usr/include/sys/signal.h:46: > /usr/include/machine/signal.h:119: error: ',' expected (got "__aligned") I tried with your code and I don't have this error. Which version of tcc are you using? Could you give us the preprocessed file as output by tcc -E? > > #!tcc -run How can this even run? You should give the complete path to tcc. Best regards, Thomas ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Tinycc-devel] please ignore execvl issure ...
In file included from /usr/include/signal.h:38: In file included from /usr/include/sys/signal.h:46: /usr/include/machine/signal.h:119: error: ',' expected (got "__aligned") #!tcc -run #include #include void got_alarm(int sig) { fprintf(stderr, "Got signal %d\n", sig); //execvp("xinit", (char *[]){"xinit", NULL}); } int main() { char c; printf("Which WM to you want(1/2/3):\n"); printf("1:stumpwm-clisp\n"); printf("2:dwm-dbg\n"); printf("9:console\n"); alarm(5*60); signal(SIGALRM, got_alarm); c = getchar(); switch(c) { case '1': execvp("xinit", (char *[]){"xinit", "clisp", NULL}); break; case '2': execvp("xinit", (char *[]){"xinit", "dwm", NULL}); break; case '9': break; default: execvp("xinit", (char *[]){"xinit", NULL}); break; } return 0; } Sincerely! ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel