[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] bound checking for local variables
From: |
Sergey Korshunoff |
Subject: |
Re: [Tinycc-devel] bound checking for local variables |
Date: |
Sun, 29 Mar 2015 09:16:07 +0300 |
Hi! A problem may be caused by error in the tcc preprocessor. A test program:
===
//#define REGPAM_GOOD_EXAMPLE
#ifndef REGPAM_GOOD_EXAMPLE
#include <stdio.h>
#endif
#define FASTCALL __attribute__((regparm(3)))
int FASTCALL __bound_local_new(int p)
{
int c = p;
return c;
}
int main ()
{
__bound_local_new(10);
return 0;
}
===
If a <stdio.h> file is included, then a FASTCALL macro is substituted
by the empty string. Very nice behavior!