On Thu, 2003-01-23 at 08:40, Frank Heckenbach wrote:
Richard D. Jackson wrote:
<snip>
Actually, I wouldn't like to work through a bunch of GCC diffs. If you can find the relevant changes or even better, a suggested diff to GPC, just send it to me.
Frank
When I first read this I thought OH man I don't even know where to start but what the heck I'll take a look :) so fired up grep and and went to work. And here is what I found:
1) The declaration for tree_code_type, tree_code_length, and tree_code_name have been moved out of core and moved to the language front-ends ( according to the ChangeLog )
More precisly they have been moved from tree.c to: com.c for Fortran??? what ever the f directory is for that is. cp-lang.c for C++ misc.c for ada lang.c for java objc-lang.c for Objective C c-lang.c for C
On top of that the types have changed as well. tree_code_type changed from char to const char tree_code_length changed from int to const unsigned char tree_code_name changed from const char * to const char *const
2) So lets see what happens when I move them into lang.c on the pascal side. On a side note moving this to the language front end eleminated the language specific tree code as well from the other front ends. other words the C front end no longer has a c_tree_code_type it just has tree_code_type the same goes for the other vars as well.
I did not try to replace the pascal_tree_code_????? I just added in the tree_code_???? vars and added the langhooks-def.h header as it was needed for the def's.
Got it to compile but now it segfaults when trying to compile rtsc.pas.
I will look into why it is doing that later tonight. Or I should say I will try as this compiler stuff is way over my head.
Richard