|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D.gnu - Compiling GDC 0.9 with GCC 4.0
Due to the inclusion of the Fortran 95 compiler (gfortran) in the current GCC CVS head I thought I'd take a stab at compiling gdc with GCC 4.0. I'm not sure if anyone else has tried this but right off the bat it doesn't work. Apart from some minor warning annoyances having to do with newly deprecated things it looks like many of the details of constructing the tree have changed. The first warning is that there is no definition for a "nesting" type. In gcc 3.4.x struct nesting is declared in tree.h but in 4.0 there is no such declaration. The second thing is that there is a large number of defines missing that are used by d-lang.cc. Here is a partial list of the missing defines: V2SF_type_node, V2DF_type_node, V16SFmode, and so on. Again, these are defined in tree.h in 3.4.x but are not defined anywhere meaningful in gcc 4.0. I've started to look at the d backend code to figure out what I can do about figuring this out but its late, my patience is growing thin, and I have to get back to work on my thesis. If someone can give me some pointers to where I can look to find the differences between the 3.4 and the 4.0 trees or even some more detail on how the gdc tree generator works I'll take a stab at this. Gordon Dec 23 2004
Gordon James Miller wrote:The first warning is that there is no definition for a "nesting" type. In gcc 3.4.x struct nesting is declared in tree.h but in 4.0 there is no such declaration. The second thing is that there is a large number of defines missing that are used by d-lang.cc. Here is a partial list of the missing defines: V2SF_type_node, V2DF_type_node, V16SFmode, and so on. Again, these are defined in tree.h in 3.4.x but are not defined anywhere meaningful in gcc 4.0. Dec 26 2004
|