This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Fwd: A little patch submission
- From: Jakub Jelinek <jakub at redhat dot com>
- To: lkeren at cs dot technion dot ac dot il
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 14 Sep 2006 08:14:31 -0400
- Subject: Re: Fwd: A little patch submission
- References: <1158226694.45092306ee69d@webmail.technion.ac.il>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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