GCC Developers Discuss New Option For Recording Compiler Flags / Details In Binaries
GCC developers recently have been discussing a new proposal over an option for preserving the command-line flags/options used when building a binary as well as the associated compiler version.
The proposal sent out last week was over a --record-gcc-command-line option to save the compiler options into the produced object file. The proposal is in the name of helping debugging, reproducing bugs, and repeating build process. There is already a -frecord-gcc-switches option that is somewhat similar in behavior but with key differences as explained in the proposal.
Past proposals along similar lines haven't ultimately panned out though this time there does seem to be some traction by stakeholders.
Another one of the benefits of better tracking of compiler versions and options used to compile code is in the name of analyzing binaries when benchmarking for seeing how arbitrary binaries from vendors or other parties are actually compiled, should there end up ultimately being a widely adopted means across compilers and uniform manner of said tracking. But we'll see where this latest proposal plays out and if --record-gcc-command-line is ultimately accepted.
The proposal sent out last week was over a --record-gcc-command-line option to save the compiler options into the produced object file. The proposal is in the name of helping debugging, reproducing bugs, and repeating build process. There is already a -frecord-gcc-switches option that is somewhat similar in behavior but with key differences as explained in the proposal.
Past proposals along similar lines haven't ultimately panned out though this time there does seem to be some traction by stakeholders.
Another one of the benefits of better tracking of compiler versions and options used to compile code is in the name of analyzing binaries when benchmarking for seeing how arbitrary binaries from vendors or other parties are actually compiled, should there end up ultimately being a widely adopted means across compilers and uniform manner of said tracking. But we'll see where this latest proposal plays out and if --record-gcc-command-line is ultimately accepted.
19 Comments