compilercache-1.0.7 released

Joe Buck jbuck@synopsys.COM
Tue Apr 10 16:54:00 GMT 2001


> > > i.e. replace all blanks and newlines and comments and combinations of those
> > > by a SINGLE newline, and remove all preprocessor (#) lines. but don't destroy
> > > strings that are multiline! and all this in a ultra fast little program,
> > > preferable a sed script, but C/lex would also be ok.
> > 
> > That would wreak havok with source-level debugging.
> it is only enabled when source-level debugging is disabled.

Worse, it will break C++.

The effect of some C++ pragmas is determined by the compiler's notion of
the current file.  If you remove the # lines, you will change the behavior
(e.g. #pragma interface, #pragma implementation).  Some elimination of
#pragmas will just make the program larger but still functional, so you
might not notice.

Also we suppress warnings in system header files; if you get rid of the #
lines, users may see more warnings.

Even ignoring that, unless your system is perfect, you risk introducing
Heisenbugs: something malfunctions, and any attempt to diagnose the
malfunction (by using a debugger) makes the malfunction disappear.



More information about the Gcc mailing list