← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2950: disable an optimization to fix a crash when starting a DL

 

------------------------------------------------------------
revno: 2950
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Mon 2012-06-18 00:10:48 +0200
message:
  disable an optimization to fix a crash when starting a DL
modified:
  SConstruct


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'SConstruct'
--- SConstruct	2012-06-17 15:18:43 +0000
+++ SConstruct	2012-06-17 22:10:48 +0000
@@ -12,10 +12,14 @@
 # - ICE when building in release mode
 # - GDB crash: <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47308>
 
+# TODO the ipa-cp-clone optimization is disabled; it causes a crash when starting a DL.
+
+# TODO enable LTO when it doesn't ICE... (-flto)
+
 gcc_flags = {
 	'common': ['-g', '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-unused-value', '-Wno-missing-field-initializers', '-Wno-address', '-fexceptions', '-mthreads'],
 	'debug': [], 
-	'release' : ['-O3', '-mwindows']
+	'release' : ['-O3', '-fno-ipa-cp-clone', '-mwindows']
 }
 
 gcc_xxflags = {
@@ -52,7 +56,7 @@
 gcc_link_flags = {
 	'common' : ['-g', '-static-libgcc', '-static-libstdc++', '-Wl,--no-undefined,--nxcompat,--dynamicbase', '-time', '-mthreads'],
 	'debug' : [],
-	'release' : ['-mwindows']
+	'release' : ['-O3', '-mwindows']
 }
 
 msvc_link_flags = {