[LLVMdev] Make dragonegg work with gcc-4.6
陳韋任
chenwj at iis.sinica.edu.tw
Sat Jun 18 02:18:15 PDT 2011
Hi, Duncan
I saw you started to port dragonegg to gcc 4.6, which is a good news.
And I am also trying to do that. The attachment get src/Convert.cpp to
compile against gcc-4.6.
Now I get a error while compiling dragonegg,
---
Compiling Debug.cpp
/tmp/chenwj/dragonegg/src/Debug.cpp: In member function 'llvm::DIType llvm::DebugInfo::createArrayType(tree_node*)':
/tmp/chenwj/dragonegg/src/Debug.cpp:623: error: 'TYPE_DEBUG_REPRESENTATION_TYPE' was not declared in this scope
---
According to the gcc-4.6.0/gcc/ChangeLog-2010, TYPE_DEBUG_REPRESENTATION_TYPE
had been removed. I am still trying to solve this.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
-------------- next part --------------
Index: src/Convert.cpp
===================================================================
--- src/Convert.cpp (revision 133342)
+++ src/Convert.cpp (working copy)
@@ -60,7 +60,7 @@
#include "tree-flow.h"
#include "tree-pass.h"
-extern int get_pointer_alignment (tree exp, unsigned int max_align);
+extern unsigned get_pointer_alignment (tree exp, unsigned int max_align);
extern enum machine_mode reg_raw_mode[FIRST_PSEUDO_REGISTER];
}
@@ -1306,9 +1306,11 @@
case INDIRECT_REF:
LV = EmitLV_INDIRECT_REF(exp);
break;
+#if (GCC_MINOR < 6)
case MISALIGNED_INDIRECT_REF:
LV = EmitLV_MISALIGNED_INDIRECT_REF(exp);
break;
+#endif
}
// Check that the type of the lvalue is indeed that of a pointer to the tree
@@ -4692,7 +4694,9 @@
case BUILT_IN_APPLY:
case BUILT_IN_RETURN:
case BUILT_IN_SAVEREGS:
+#if (GCC_MINOR < 6)
case BUILT_IN_ARGS_INFO:
+#endif
case BUILT_IN_NEXT_ARG:
case BUILT_IN_CLASSIFY_TYPE:
case BUILT_IN_AGGREGATE_INCOMING_ADDRESS:
@@ -8497,7 +8501,9 @@
case COMPONENT_REF:
case IMAGPART_EXPR:
case INDIRECT_REF:
+#if (GCC_MINOR < 6)
case MISALIGNED_INDIRECT_REF:
+#endif
case REALPART_EXPR:
case TARGET_MEM_REF:
case VIEW_CONVERT_EXPR:
More information about the llvm-dev
mailing list