Project Stage 3 - Tidy up
Unfortunately I have been unable to complete this section of the project as I have wanted. During the compiling of my new code I came across so many errors and was tinkering around in files outside of the four provided in the sample gcc/passes.def gcc/Makefile.in gcc/tree-ctyler.cc gcc/tree-pass.h I ended up getting some very wonky errors that I don't quite understand and couldn't find reliable resources on the internet to help me out. Below is an example of one: From what I could make of this bug out of many that I tried to wrestle away there was some sort of error in the gcc pass_manager.h where it is missing specific declarations for files, I was left very confused as some of these files I did not even interact with. Below is what my final attempt at creating a somewhat resemblance of a GCC pass that prunes functions: #include "config.h" #include "system.h" #include "coretypes.h" #include "tree.h" #include "tree-pass.h" #i...