lcc - Compiler limit: Input buffer overflow

  • Follow


Hi,

/*--{test.c}--[begin]-------------------------------*/
#define DEAD(x) \
  extern int fun_test_##x(int); \
         int fun_test_##x(int a) \
         { \
           return a; \
         }
#define DEAD_G00(g) DEAD    (0##g)     DEAD(1##g)
#define DEAD_G01(g) DEAD_G00(0##g) DEAD_G00(1##g)
#define DEAD_G02(g) DEAD_G01(0##g) DEAD_G01(1##g)
#define DEAD_G03(g) DEAD_G02(0##g) DEAD_G02(1##g)
#define DEAD_G04(g) DEAD_G03(0##g) DEAD_G03(1##g)
#define DEAD_G05(g) DEAD_G04(0##g) DEAD_G04(1##g)
#define DEAD_G06(g) DEAD_G05(0##g) DEAD_G05(1##g)
#define DEAD_G07(g) DEAD_G06(0##g) DEAD_G06(1##g)
#define DEAD_G08(g) DEAD_G07(0##g) DEAD_G07(1##g)
#define DEAD_G09(g) DEAD_G08(0##g) DEAD_G08(1##g)
#define DEAD_G10(g) DEAD_G09(0##g) DEAD_G09(1##g)
DEAD_G10(a)
/*----[end]----------------------------------------*/

/> lcc -c test.c
cpp: test.c:19 Compiler limit: Input buffer overflow

/> lcc -v
Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Apr  6
2010 13:15:36

-- 
Maciek

0
Reply MaciekL 4/14/2010 1:43:25 PM

MaciekL a �crit :
> Hi,
> 
> /*--{test.c}--[begin]-------------------------------*/
> #define DEAD(x) \
>   extern int fun_test_##x(int); \
>          int fun_test_##x(int a) \
>          { \
>            return a; \
>          }
> #define DEAD_G00(g) DEAD    (0##g)     DEAD(1##g)
> #define DEAD_G01(g) DEAD_G00(0##g) DEAD_G00(1##g)
> #define DEAD_G02(g) DEAD_G01(0##g) DEAD_G01(1##g)
> #define DEAD_G03(g) DEAD_G02(0##g) DEAD_G02(1##g)
> #define DEAD_G04(g) DEAD_G03(0##g) DEAD_G03(1##g)
> #define DEAD_G05(g) DEAD_G04(0##g) DEAD_G04(1##g)
> #define DEAD_G06(g) DEAD_G05(0##g) DEAD_G05(1##g)
> #define DEAD_G07(g) DEAD_G06(0##g) DEAD_G06(1##g)
> #define DEAD_G08(g) DEAD_G07(0##g) DEAD_G07(1##g)
> #define DEAD_G09(g) DEAD_G08(0##g) DEAD_G08(1##g)
> #define DEAD_G10(g) DEAD_G09(0##g) DEAD_G09(1##g)
> DEAD_G10(a)
> /*----[end]----------------------------------------*/
> 
> /> lcc -c test.c
> cpp: test.c:19 Compiler limit: Input buffer overflow
> 
> /> lcc -v
> Logiciels/Informatique lcc-win32 version 3.8. Compilation date: Apr  6
> 2010 13:15:36
> 

This can be fixed of course but needs a maintenance agreement.
You are generating code and using lcc as a back end. This is not
just for personal use or fun...

You buy a maintenance agreement and I fix it.

Thanks in advance

jacob
0
Reply jacob 4/14/2010 3:19:35 PM


1 Replies
627 Views

(page loaded in 0.022 seconds)

Similiar Articles:













7/22/2012 2:14:33 PM


Reply: