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,take2] Make LTO plugin object-file-format- and host- independent.


> +  # ELF platforms build the lto-plugin when GOLD is in use.
> +  build_lto_plugin=${ENABLE_GOLD}

I won't hold up your patch based on it, but I'd like to not
tie build_lto_plugin to gold even for elf.  Your gnu-ld patch
should enable lto for the elf targets that havn't been ported
to gold.

> +++ lto-plugin/lto-plugin.h	(revision 0)

As a future enhancement, it's probably worth wrapping most of
this file in 

#ifdef HAVE_ATTRIBUTE_VISIBILITY
# pragma GCC visibility push(hidden)
#endif

...

#ifdef HAVE_ATTRIBUTE_VISIBILITY
# pragma GCC visibility pop
#endif

See libgomp for configure bits.

It looks as if you've addressed the rest of the configuration
feedback you received in v1.

Patch is ok.


r~


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