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]

Re: [PATCH] Handle weak symbols


>>>>> "Franz" == Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:

    Franz> OK to commit to mainline and branch?

Yes -- but you need rtl.texi documentation for SYMBOL_REF_WEAK.

Also, gcc.texi says:

  This section lists changes that people frequently request, but which
  we do not make because we think GCC is better without them.

And then goes on to list:

  @item
  Assuming (for optimization) that the address of an external symbol is
  never zero.

  This assumption is false on certain systems when @samp{#pragma weak} is
  used.

Obviously, the documentation has been lying here for ages -- we *do*
make this optimization, and have at least since GCC 2.95.2.

Please remove this bullet as well.

Thanks,

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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