Re: [PATCH 1/4] Support GCC LTO on GNU/Linux.

2010-04-04 Thread Charles Wilson
On 4/4/2010 4:55 AM, Ralf Wildenhues wrote: > * NEWS: Update. > * libltdl/config/ltmain.m4sh (func_mode_link): Allow through > flags matching -O*, -flto*, -fwhopr, -fuse-linker-plugin. > * libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Drop symbols > starting with __gnu_lto. > (_LT_LINKER_SHLIBS)

Re: link-time optimization

2010-04-04 Thread Török Edwin
On 04/04/2010 11:54 AM, Ralf Wildenhues wrote: > * Ralf Wildenhues wrote on Sun, Mar 28, 2010 at 05:33:44PM CEST: >> I'm still working on a patch to support -flto in libtool, it needs >> changes in several places. > > I have a preliminary(!) patch set here for LTO support in libtool. Hi, Thanks

[PATCH 4/4] Add $pic_flag to archive_cmds and archive_expsym_cmds.

2010-04-04 Thread Ralf Wildenhues
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [GNU ld, netbsd]: Add $pic_flag if ELF. [GNU ld, solaris]: Likewise. [GNU ld, default case]: Likewise. [!GNU ld, freebsd, dragonfly]: Add $pic_flag. [!GNU ld, GCC, hpux9]: Add $pic_flag. [!GNU ld, GCC, hpux10]: Replace -fPIC with $pic_flag [!GNU ld, GCC,

[PATCH 3/4] Uniform const'ness of symlist variable lt_preloaded_symbols.

2010-04-04 Thread Ralf Wildenhues
On some systems, lt_preloaded_symbols may not be declared const due to relocation issues. C99 requires qualification to match for compatible declarations, so ensure we declare const'ness in the same way everywhere; link-time optimization may otherwise rightfully complain about inconsistencies. Sin

[PATCH 2/4] Fix incompatible struct declarations.

2010-04-04 Thread Ralf Wildenhues
* doc/libtool.texi (Dlpreopening): Remove broken documentation of lt_dlsymbol and lt_dlsymlist. Document typedef lt_dlsymlist and symbol lt_preloaded_symbols according to the implementation. * tests/demo/dlmain.c (lt_symlist): Make struct anonymous ... (lt_dlsymlist): ... and typedef to this name.

[PATCH 1/4] Support GCC LTO on GNU/Linux.

2010-04-04 Thread Ralf Wildenhues
* NEWS: Update. * libltdl/config/ltmain.m4sh (func_mode_link): Allow through flags matching -O*, -flto*, -fwhopr, -fuse-linker-plugin. * libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Drop symbols starting with __gnu_lto. (_LT_LINKER_SHLIBS) [linux] : Add $pic_flag for GCC. (_LT_LANG_CXX_CONFIG) [

Re: link-time optimization

2010-04-04 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Sun, Mar 28, 2010 at 05:33:44PM CEST: > > I'm still working on a patch to support -flto in libtool, it needs > changes in several places. I have a preliminary(!) patch set here for LTO support in libtool. DO NOT submit this to your favorite distribution, it is not ready

Use linker_flags not compiler_flags with $LD.

2010-04-04 Thread Ralf Wildenhues
Hello, I've pushed this patch to fix a fairly obvious glitch. Thanks, Ralf Use linker_flags not compiler_flags with $LD. * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux] : With xlf and bgxlf compilers, when linking with $LD, use $linker_flags not $compiler_flags. dif