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: Prefixes for libgcc symbols (C6X 9.5/11)


On 05/13/2011 04:26 PM, Joseph S. Myers wrote:
> On Fri, 13 May 2011, Bernd Schmidt wrote:
> 
>> The following patch adds a target hook and a corresponding LIBGCC2_
>> macro which control the generation of library function names. It also
>> makes libgcc-std.ver a generated file, built from libgcc-std.ver.in by
>> replacing some placeholders with the correct prefixes. While I was
>> there, I also added functionality to generate a version of this file
>> with an extra underscore for the Blackfin port.
> 
> But the linker was changed to use C symbol names in linker scripts and I 
> was told that this script in GCC would be removed in consequence.
> 
> http://sourceware.org/ml/binutils/2010-12/msg00375.html

Oh well. Dropped.

> Any new target macro for use only in target libraries should, in my view, 
> be poisoned in the host system.h from the start to ensure that no-one 
> accidentally adds definitions to the host tm.h.  This would be alongside 
> the existing
> 
> /* Target macros only used for code built for the target, that have
>    moved to libgcc-tm.h.  */
>  #pragma GCC poison DECLARE_LIBRARY_RENAMES

Done. New patch below, now testing.


Bernd

Attachment: libfuncs-prefix.diff
Description: Text document


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