Preprocessor bug

Preprocessor bug

Post by lenniegoog » Fri, 30 Jan 2004 07:15:23


/*****************************************************************************

The LCC preprocessor has a bug which apparently creates an infinite loop
causing the compiler to hang (never finishes compiling).

Lennie

*****************************************************************************/

#define F1(a,b) ((a) + (b))
#define STEP(f,a,b) b = f(a,b)

int main(int argc, char* argv[])
{
int x,y;
STEP(F1,x,y);
return 0;
}
 
 
 

Preprocessor bug

Post by jacob navi » Fri, 30 Jan 2004 18:06:11

?????

I can't reproduce this here with the latest version





/*********************************************************************
********
infinite loop
**********************************************************************
*******/

 
 
 

Preprocessor bug

Post by lenniegoog » Fri, 13 Feb 2004 06:11:32


This bug report was for the original LCC cross compiler (not the
Win32-LCC compiler)...Does LCC-Win32 use a different preprocessor than
the original LCC compiler?

Do Chris Fraser and David Hanson still monitor this forum for LCC bug
reports?

Lennie
 
 
 

Preprocessor bug

Post by jacob navi » Fri, 13 Feb 2004 09:07:18


Ahhh OK great!



Well, I have fixed a lot of things surely.

bug

I do not really know.

In any case Dennis has other things to do than to fix that...
The preprocessor of lcc-win32 remains of course his work.

I have changed the flow of the pre-processor for lcc-win32.
It doesn't build an intermediate file but writes into a buffer.
This is much faster but needed some modifications to the
sources of Dennis.

jacob
 
 
 

Preprocessor bug

Post by Dave Hanso » Sun, 22 Feb 2004 05:45:16

Yes, we monitor comp.compilers.lcc for bugs/suggestions about lcc. I'll put
this one on my list.
dave hanson