This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for PCH in start_cleanup_fn


On Tue, 10 Jun 2003 20:47:50 +0200, Steven Bosscher <s.bosscher@student.tudelft.nl> wrote:

>> This is the final patch I committed.  Bootstrapped & tested on powerpc-darwin.
>>
> ---- 8< ----
>> +2003-06-06  Andrew Pinski  <pinskia@physics.uc.edu>
>> +
>> +	* decl.c (start_cleanup_fn): Move static 'counter' out, mark with GTY.
>> +	(start_cleanup_cnt): New.
>> +
>
> Hmm, maybe I am missing something, but if start_cleanup_cnt is new,
> then shouln't it be initialized somewhere, or is it automatically
> initialized to zero?

Variables with static storage duration are automatically zero-initialized.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]