[mythtv] [patch] linuxppc
Jeremiah Morris
jm at whpress.com
Mon Feb 7 18:01:47 UTC 2005
On Feb 7, 2005, at 10:21 AM, MythTV wrote:
> -O3 works fine for me with linuxppc.
Thanks for the data point, Mino. In the absence of evidence, I opted to
keep the optimization flags on the safe side for the commit, but I'll
put -O3 back for LinuxPPC soon.
On the Qt/Mac problem, the only differences between -O2 and -O3 are
-frename-registers and -finline-functions. It looks like the latter is
causing the problem, so I'm thinking of changing the Mac optimization
to -O3 -fno-inline-functions instead. This makes the workaround a bit
more explicit and fits in better with using -O3 for linuxppc; see below
for the settings.pro diff. Thoughts, Nigel?
- Jer
--- settings.pro 6 Feb 2005 20:06:54 -0000 1.101
+++ settings.pro 7 Feb 2005 15:55:38 -0000
@@ -24,8 +24,11 @@
QMAKE_CXXFLAGS_RELEASE = -O3 -march=pentiumpro
-fomit-frame-pointer
}
contains( TARGET_ARCH_POWERPC, yes ) {
- # Do not use -O3, it causes some Qt moc methods to go missing
- QMAKE_CXXFLAGS_RELEASE = -O2
+ QMAKE_CXXFLAGS_RELEASE = -O3
+ macx {
+ # Auto-inlining causes some Qt moc methods to go missing
+ QMAKE_CXXFLAGS_RELEASE += -fno-inline-functions
+ }
}
QMAKE_CFLAGS_RELEASE = $${QMAKE_CXXFLAGS_RELEASE}
}
%
More information about the mythtv-dev
mailing list