[lkml]   [2008]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] fastboot: Introduce an asynchronous function call mechanism
 > > I was actually "?"ing at the "= 0".  I thought that would be obvious
> > but it's whizzed past two people so far :(
> Is there evidence that some gccs will not add such variable to .bss?
> Because "= 0;" is more readable.


GCC 3.3.1 automatically places zero-initialized variables in the .bss
section on some operating systems. Versions of GNU Emacs up to (and
including) 21.3 will not work correctly when using this optimization;
you can use -fno-zero-initialized-in-bss to disable it.

so presumably gcc 3.2 (which we still support, right?) does not do this
(and puts such variables in .data).

- R.

 \ /
  Last update: 2008-10-15 19:57    [W:0.090 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site