Adapt tcc-0.9.26's step to use pnut-exe instead of mes

This commit is contained in:
Laurent Huberdeau 2025-11-07 00:20:10 -05:00
parent ba90de8d85
commit 15a64feac3
12 changed files with 120 additions and 50 deletions

View file

@ -0,0 +1,5 @@
#ifdef PNUT_CC
char buf1[1024];
#else
char buf1[sizeof file->filename];
#endif

View file

@ -0,0 +1 @@
char buf1[sizeof file->filename];

View file

@ -0,0 +1,5 @@
#if HAVE_LONG_LONG_STUB || HAVE_LONG_LONG
vtop[0].c.i >>= 32;
#else
vtop[0].c.i = 0;
#endif

View file

@ -0,0 +1,3 @@
#if HAVE_LONG_LONG_STUB || HAVE_LONG_LONG
vtop[0].c.i >>= 32;
#endif

View file

@ -0,0 +1,8 @@
#if HAVE_FLOAT
if (t == VT_FLOAT)
vtop->c.f = (float) 0x80000000;
else if (t == VT_DOUBLE)
vtop->c.d = (double) 0x8000000000000000ULL;
else
vtop->c.ld = (long double) 0x8000000000000000ULL;
#endif

View file

@ -0,0 +1,8 @@
#if HAVE_FLOAT
if (t == VT_FLOAT)
vtop->c.f = -1.0 * 0.0;
else if (t == VT_DOUBLE)
vtop->c.d = -1.0 * 0.0;
else
vtop->c.ld = -1.0 * 0.0;
#endif

View file

@ -0,0 +1 @@
a = 0; b = 9; c = 26;

View file

@ -0,0 +1 @@
sscanf(TCC_VERSION, "%d.%d.%d", &a, &b, &c);

View file

@ -0,0 +1 @@
#if defined _WIN32 == defined TCC_TARGET_PE && 0

View file

@ -0,0 +1 @@
#if defined _WIN32 == defined TCC_TARGET_PE