I am trying to customize a particular release of gcc (gcc 11.4.0) to make a small change which I need to share with some other developers on github. To this end, I need to fork gcc to add a pre-processor definition (MY_DEFINITION
) that gets added to every call (without the user having to specify -DMY_DEFINITION=1
on every invocation. Eventually I would like to share this patch with other upstream developers. With this in mind I need help in 2 areas:
I need help forking gcc to my github account and getting access to the labels so I can make a local branch to add my patches starting from that github branch of gcc. I did the usual thing of selecting the
fork
option in the official gcc github repo. This correctly forked the repository to my github account, however when I clone this forked repository to my local workspace, I cannot checkout releases/gcc-11.4.0 as all the branch and tag details are not brought along with the forked gcc. I need help with getting access to these release branches locally, and once I do, I need to create a local branch from that point 'my_macro_feature' to add my patches for later upstream release. I'm new to this patching process so advice on how to do this correctly would be greatly appreciated.Assuming I can do the first step above, which file in gcc contains the builtins for macros. I'm having a hard time finding how I can change this relatively tiny feature.