Re: checkpatch.pl and statics

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bernd Petrovitsch <bernd@...>
Cc: Andreas Westin XX <andreas.xx.westin@...>, <linux-kernel@...>
Date: Sunday, March 16, 2008 - 9:34 am

On Mar. 13, 2008, 17:43 +0200, Bernd Petrovitsch <bernd@firmix.at> wrote:

gcc (at least version >= 4.1.2) seems to smarter than that. It
doesn't seem to put data initialized to zero in the initialized data
segment but rather adds it to the uninitialized data. That said,
initializing statically allocated data to zero is superfluous in C
and should be avoided for style/elegance reasons as well.

Benny


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
checkpatch.pl and statics, Andreas Westin XX, (Thu Mar 13, 11:09 am)
Re: checkpatch.pl and statics, Bernd Petrovitsch, (Thu Mar 13, 11:43 am)
Re: checkpatch.pl and statics, Benny Halevy, (Sun Mar 16, 9:34 am)
Re: checkpatch.pl and statics, Bernd Petrovitsch, (Sun Mar 16, 10:13 am)
Re: checkpatch.pl and statics, Benny Halevy, (Sun Mar 16, 12:23 pm)