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][RFH] (3/3) Vectorize some builtins on x86_64 by using libgcc-math



If this is a shared library, then the link command line (generated by gcc when linking with -ftree-vectorize) should at least use --as-needed -lgcc-math --no-as-needed (if USE_LD_AS_NEEDED) to avoid dependencies on libgcc-math for programs that don't in fact need it.

This would still require libgcc-math.a to be present in order to do the linking, right?


OTOH, it would not need to be connected to -ftree-vectorize, but it could be in the default target specs for targets that have --as-needed.

Paolo


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