You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2008/09/18 13:31:47 UTC
svn commit: r696636 - /harmony/enhanced/drlvm/trunk/make/vm/jitrino.xml
Author: hindessm
Date: Thu Sep 18 04:31:46 2008
New Revision: 696636
URL: http://svn.apache.org/viewvc?rev=696636&view=rev
Log:
Workaround for two warnings treated as errors when compiling with
the yet-to-be-released gcc-4.4. The warnings are:
[compile-cc] working_vm/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp: In member function 'virtual void Jitrino::JavaByteCodeTranslator::lookupswitch(Jitrino::JavaLookupSwitchTargetsIter*)':
[compile-cc] working_vm/vm/jitrino/src/translator/java/JavaByteCodeTranslator.cpp:1351: error: 'key' may be used uninitialized in this function
[compile-cc] working_vm/vm/jitrino/src/optimizer/abcd/abcd.cpp: In function 'void Jitrino::checkSSA(Jitrino::ControlFlowGraph*)':
[compile-cc] working_vm/vm/jitrino/src/optimizer/abcd/abcd.cpp:423: error: 'checkInst' is used uninitialized in this function
[compile-cc] working_vm/vm/jitrino/src/optimizer/abcd/abcd.cpp:447: note: 'checkInst' was declared here
The first is a false positive. I've not really looked at the second one.
A less drastic workaround might be a good idea though. Perhaps using a
gcc #pragma?
Modified:
harmony/enhanced/drlvm/trunk/make/vm/jitrino.xml
Modified: harmony/enhanced/drlvm/trunk/make/vm/jitrino.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/make/vm/jitrino.xml?rev=696636&r1=696635&r2=696636&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/make/vm/jitrino.xml (original)
+++ harmony/enhanced/drlvm/trunk/make/vm/jitrino.xml Thu Sep 18 04:31:46 2008
@@ -185,6 +185,7 @@
<compilerarg value="-fmessage-length=0" if="is.gcc"/>
<compilerarg value="-Wall" if="is.gcc"/>
<compilerarg value="-Werror" if="is.gcc"/>
+ <compilerarg value="-Wno-uninitialized" if="is.gcc"/>
<compilerarg value="-x" />
<compilerarg value="c++" />