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: [PING^2] [PATCH] PR59063


On Wed, Nov 27, 2013 at 05:52:30PM +0400, Yury Gribov wrote:
> > Perhaps it is time for libsanitizer.spec filled in during
> configure of libsanitizer
> > that the spec would source in?
> 
> Draft patch is attached, let's see if I understood your
> recommendation correctly. Some obvious quirks:
> 1) I didn't add link_libubsan/link_liblsan because they seem to be
> happy with default libs from %(link_sanitizer).
> 2) I left LIBASAN_EARLY_SPEC/LIBASAN_SPEC logic in gnu-user.h and gcc.c
> because they rely on LD_STATIC_OPTION and HAVE_LD_STATIC_DYNAMIC
> which are defined in gcc/configure
> and thus not available in libsanitizer/configure.

Looks basically ok, my preference perhaps would be not to put
link_sanitizer into the Makefile*/libsanitizer.spec/gcc.c at all,
instead use it solely as configure.ac/configure internal variable
and set all of link_{a,t,l,ub}san to it plus the extra libs needed
by each of those.  The fact that they have some common libs is IMHO just an
internal detail that doesn't need to be exposed outside of libsanitizer.

> +  " %{static-libasan:%:include(libsanitizer.spec)%(link_libasan) %(link_sanitizer)}"

So this would have s/ %(link_sanitizer)//.

> +  " %{static-liblsan:%:include(libsanitizer.spec) %(link_sanitizer)}"

Note for asan you didn't use space between %:include and %(link_*, but now
you did.

	Jakub


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