http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43601

--- Comment #49 from Dave Korn <davek at gcc dot gnu.org> 2011-01-09 17:30:31 
UTC ---
Created attachment 22935
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22935
trial patch

brings the earlier change that nathan made to always keep dllexported inlines
under control of a command-line flag.  Before:

----------------------------------snip----------------------------------
make[1]: Leaving directory `/tmp/wx/obj-x-ming-clean/utils/wxrc'
Creating library file:
/tmp/wx/obj-x-ming-clean/lib/libwx_mswd_core-2.8.dll.a/op
t/mingw-pr43601-clean/lib/gcc/i686-pc-mingw32/4.6.0/../../../../i686-pc-mingw32/
bin/ld: final link failed: Memory exhausted
collect2: ld returned 1 exit status

make: *** [/tmp/wx/obj-x-ming-clean/lib/wxmsw28d_core_gcc_custom.dll] Error 1

real    79m46.081s
user    50m1.166s
sys     5m45.723s

$ du -cxsh lib/*.dll
59M     lib/wxbase28d_gcc_custom.dll
1.4M    lib/wxbase28d_net_gcc_custom.dll
512K    lib/wxbase28d_xml_gcc_custom.dll
61M     total
----------------------------------snip----------------------------------

... and after ... 

----------------------------------snip----------------------------------
Creating library file: /tmp/wx/obj-x-ming-new/lib/libwx_mswd_aui-2.8.dll.a
Creating library file: /tmp/wx/obj-x-ming-new/lib/libwx_mswd_richtext-2.8.dll.a
Creating library file: /tmp/wx/obj-x-ming-new/lib/libwx_mswd_xrc-2.8.dll.a

real    39m32.531s
user    21m52.641s
sys    4m53.111s


$ du -cxsh lib/*.dll
33M     lib/wxbase28d_gcc_custom.dll
1.3M    lib/wxbase28d_net_gcc_custom.dll
512K    lib/wxbase28d_xml_gcc_custom.dll
5.2M    lib/wxmsw28d_adv_gcc_custom.dll
2.2M    lib/wxmsw28d_aui_gcc_custom.dll
117M    lib/wxmsw28d_core_gcc_custom.dll
4.7M    lib/wxmsw28d_html_gcc_custom.dll
576K    lib/wxmsw28d_qa_gcc_custom.dll
4.2M    lib/wxmsw28d_richtext_gcc_custom.dll
8.2M    lib/wxmsw28d_xrc_gcc_custom.dll
176M    total
----------------------------------snip----------------------------------

Needs testcase + doco before I can submit it.

Reply via email to