[PPL-devel] Re: Behaviors of `gcc -E -C'

Roberto Bagnara bagnara at cs.unipr.it
Fri Oct 19 10:07:58 CEST 2001


Roberto Bagnara wrote:
> 
> Hi there,
> 
> here is a problem I have encountered that may be of interest to both
> the GCC and the DOXYGEN communities.
> Consider the following 4 non-empty lines of C text:
> 
> #if 0
> /* I would like not to see this. */
> int x;
> #endif
>
> ...

Neil Booth wrote:
> 
> There are various issues with -C which are not good.  It saves
> comments within a macro expansion, so that each invocation reproduces
> the comment.
> 
> This is nice, except that it doesn't work with C++ comments, since
> stuff later on the line can be commented out (doh!) and it doesn't
> work in directives, which don't expect comments as tokens.
> 
> ...
> 
> As for 3.0.2, this patch plus a one-liner to fix the bug you mentioned
> about comments in skipped blocks being output could be applied.  I'll
> see what Mark thinks RSN.

Dear Neil,

thank you very much for your help.
Will your patches be applied to the 3.0.2 branch?
This would be very important for us.
All the best,

     Roberto

-- 
Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it



More information about the PPL-devel mailing list