Hi Devang, <some part snipped> > - > Devang > > [ Interestingly, there is a long standing request, here at Apple, to list > command line options in object file (even when optimization is not used). > One of our intern tried to put them in STABS string. It may be a good > idea to use DWARF in that case also. However it is orthogonal to > optimization diary. It is a good small project, if someone is > interested. ] >
Is this what you want ? This doesn't use DWARF but just has a separate section options section which contains all the options passed. http://gcc.gnu.org/ml/gcc-patches/2006-01/msg01119.html It seems to be awaiting review. cheers Ramana