<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It is very useful to have svn version number encoded in llvm-gcc's --version output. Here is one approach.<div><br></div><div>Anyone has a better patch ?</div><div>-</div><div>Devang</div><div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br></div></div></span><br class="Apple-interchange-newline"> </div><div>Index: Makefile.in</div><div>===================================================================</div><div>--- Makefile.in<span class="Apple-tab-span" style="white-space:pre"> </span>(revision 53385)</div><div>+++ Makefile.in<span class="Apple-tab-span" style="white-space:pre">      </span>(working copy)</div><div>@@ -802,6 +802,9 @@</div><div> DEVPHASE_s  := "\"$(if $(DEVPHASE_c), ($(DEVPHASE_c)))\""</div><div> DATESTAMP_s := "\"$(if $(DEVPHASE_c), $(DATESTAMP_c))\""</div><div> </div><div>+SVNVER_c    := $(shell svnversion $(abs_srcdir) )</div><div>+SVNVER_s := "\"$(if $(SVNVER_c), $(SVNVER_c))\""</div><div>+</div><div> # Shorthand variables for dependency lists.</div><div> TARGET_H = $(TM_H) target.h insn-modes.h</div><div> MACHMODE_H = machmode.h mode-classes.def insn-modes.h</div><div>@@ -2048,9 +2051,11 @@</div><div> </div><div> dumpvers: dumpvers.c</div><div> </div><div>-version.o: version.c version.h $(DATESTAMP) $(BASEVER) $(DEVPHASE)</div><div>+.PHONY: version.o</div><div>+version.o:</div><div> <span class="Apple-tab-span" style="white-space:pre">       </span>$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \</div><div> <span class="Apple-tab-span" style="white-space:pre">  </span>-DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \</div><div>+        -DSVNVER=$(SVNVER_s) \</div><div> <span class="Apple-tab-span" style="white-space:pre">  </span>-DDEVPHASE=$(DEVPHASE_s) -c $(srcdir)/version.c $(OUTPUT_OPTION)</div><div> </div><div> gtype-desc.o: gtype-desc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \</div><div><br></div></div></body></html>