Fwd: A little patch submission

Jakub Jelinek jakub@redhat.com
Thu Sep 14 12:14:00 GMT 2006


On Thu, Sep 14, 2006 at 12:38:14PM +0300, lkeren@cs.technion.ac.il wrote:
> --- libcpp/macro.c      (revision 114680)
> +++ libcpp/macro.c      (working copy)
> @@ -118,6 +118,8 @@
>    const uchar *result = NULL;
>    unsigned int number = 1;
> 
> +  static unsigned int static_counter = 0;
> +

Are you sure you don't want to reinitialize the counter at the beginning
of each translation unit?  If e.g. more than one source file is
preprocessed in one run (e.g. with gcc --combine), the behavior would
be different from preprocessing them separately.

	Jakub



More information about the Libstdc++ mailing list