Dear David Malcolm
I would like to share my progress on building and modifying the GNU
compiler from source.
I successfully built GCC from the source code. During the process, I
resolved dependency and configuration issues that arose.
After the build was completed, I tested the compiled compiler using a
simple test.c file.
int main(){
return 0;
}
The compilation and execution worked correctly, confirming that the build
was functioning as expected.
Then I started experimenting with modifications in the source code. I
edited the file c-parser.cc , specifically the function
"c_parser_translation_unit" and added the following line:
warning (0, "Good Job");
My goal was to introduce a warning that would appear during each
compilation.
However, after making the changes and rebuilding, the cc1 binary was not
generated. The build process completes the configuration stage but fails to
produce the main compiler binary. I restored c-parser.cc to its original
state, yet the issue still persists , the build still finishes without
generating cc1.
what do you advise?
Best regards,
Islombek