Author Topic: MinGW gcc 4.5.2svn with 4.6 LTO patch  (Read 6713 times)

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
MinGW gcc 4.5.2svn with 4.6 LTO patch
« on: November 26, 2010, 11:38:39 am »
I have compiled the mingw gcc 4.5.2svn with gcc 4.6 LTO patch, and that means, we can compile many projects with LTO optimization, such as wxWidgets or Qt.

Welcome to download.

static gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2static_snapshots.7z
shared gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2shared_snapshots.7z
Regards,
xunxun

Offline wangdong1226

  • Multiple posting newcomer
  • *
  • Posts: 46
Re: MinGW gcc 4.5.2svn with 4.6 LTO patch
« Reply #1 on: March 20, 2011, 01:29:20 am »
I have compiled the mingw gcc 4.5.2svn with gcc 4.6 LTO patch, and that means, we can compile many projects with LTO optimization, such as wxWidgets or Qt.

Welcome to download.

static gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2static_snapshots.7z
shared gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2shared_snapshots.7z

how to make config file when build wxWidgets and using LTO ?
like this?
mingw32-make -f makefile.gcc CXXFLAGS="-enable-auto-import -O2 -pipe -mthreads -fvisibility=hidden -fvisibility-inlines-hidden -flto" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--copy-dt-needed-entries -Wl,-enable-auto-import -Wl,-flto -s" SHARED=1 BUILD=release UNICODE=1 DEBUG_INFO=0 DEBUG_FLAG=0 MONOLITHIC=1 USE_STC=0 USE_PROPGRID=1 USE_EXCEPTIONS=0 USE_RTTI=0 OFFICIAL_BUILD=1 RUNTIME_LIBS=static

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: MinGW gcc 4.5.2svn with 4.6 LTO patch
« Reply #2 on: March 20, 2011, 09:02:01 am »
The config script seems right.
Have you tried my edition? My edition hasn't the problem.
Regards,
xunxun