Could a gatekeeper please review a few minor fixes for building on
Fedora 17 with gcc 4.7? With these changes I was able to get a clean
build.
Here is the proposed commit message and the diffs:
Fix compilation errors reported by gcc 4.7 on Fedora 17.
In the template function Unwind (wn_tree_util.h), qualify Set_wn member
function calls with "this->".
In Delete_All_Distr_Pragmas (lego.cxx), use a different name for the
inner loop index.
In ipa_nystrom_alias_analyzer.cxx, include <unistd.h> to get the prototype
for sbrk().
Index: osprey/common/com/wn_tree_util.h
===================================================================
--- osprey/common/com/wn_tree_util.h (revision 3939)
+++ osprey/common/com/wn_tree_util.h (working copy)
@@ -455,7 +455,7 @@
if (WN_operator(parent_wn) == OPR_BLOCK) {
if (WN_next(wn)) {
- Set_wn(WN_next(wn));
+ this->Set_wn(WN_next(wn));
done = TRUE;
}
else // all stmts in a block processed ==> go back up
@@ -464,7 +464,7 @@
else { // parent is NON_BLOCK ie increment kid_count to get next sibling
INT indx = this->Get_kid_index();
if ((0 <= indx) && (indx < WN_kid_count(parent_wn) - 1)) {
- Set_wn(WN_kid(parent_wn,this->Inc_kid_index()));
+ this->Set_wn(WN_kid(parent_wn,this->Inc_kid_index()));
done = TRUE;
}
else {
Index: osprey/be/lno/lego.cxx
===================================================================
--- osprey/be/lno/lego.cxx (revision 3939)
+++ osprey/be/lno/lego.cxx (working copy)
@@ -390,13 +390,13 @@
static void Delete_All_Distr_Pragmas () {
for (INT i=0; i<da_stack->Elements(); i++) {
DISTR_INFO* dinfo = da_stack->Bottom_nth(i);
- INT i;
- for (i=0; i<dinfo->Num_Dact(); i++) {
- DISTR_ARRAY* dact = dinfo->Get_Dact(i);
+ INT j;
+ for (j=0; j<dinfo->Num_Dact(); j++) {
+ DISTR_ARRAY* dact = dinfo->Get_Dact(j);
Delete_Distr_Pragmas (dact);
}
- for (i=0; i<dinfo->Num_Gen_Redistr(); i++) {
- DISTR_ARRAY* dact = dinfo->Get_Gen_Redistr(i);
+ for (j=0; j<dinfo->Num_Gen_Redistr(); j++) {
+ DISTR_ARRAY* dact = dinfo->Get_Gen_Redistr(j);
Delete_Distr_Pragmas (dact);
}
}
Index: osprey/ipa/main/analyze/ipa_nystrom_alias_analyzer.cxx
===================================================================
--- osprey/ipa/main/analyze/ipa_nystrom_alias_analyzer.cxx (revision 3939)
+++ osprey/ipa/main/analyze/ipa_nystrom_alias_analyzer.cxx (working copy)
@@ -17,6 +17,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
*/
+#include <unistd.h>
#include <elf.h>
#include <stack>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Open64-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open64-devel