Subversion provides an "opt-in" version of keyword substitution, and provides a $Revision$ keyword. It might take a little scriptery to get that into the form GCC wants.
http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html#svn.advanced.props.special.keywords