diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-03-13 00:10:13 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-03-13 00:10:13 +0000 |
commit | 6feb772821f473bad8f16e0959100bd404363ff2 (patch) | |
tree | 8e461958ce7225c47f8f03c091b7a7d2ef297653 /gcc/cpphash.c | |
parent | d35364d13e14ba0eea541a77484c716f1cf82195 (diff) | |
download | gcc-6feb772821f473bad8f16e0959100bd404363ff2.zip gcc-6feb772821f473bad8f16e0959100bd404363ff2.tar.gz gcc-6feb772821f473bad8f16e0959100bd404363ff2.tar.bz2 |
cpphash.c: Don't include version.h.
* cpphash.c: Don't include version.h.
(special_symbol) [case T_VERSION]: Look for the string in
hp->value.cpval; don't use version_string.
* cppinit.c (initialize_builtins): Set hp->value.cpval for
__VERSION__ to version_string.
* Makefile.in (cpphash.o): Update deps.
From-SVN: r32499
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r-- | gcc/cpphash.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c index f993510..3d48e8c 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -28,7 +28,6 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "cpplib.h" #include "cpphash.h" #include "hashtab.h" -#include "version.h" #undef abort static unsigned int hash_HASHNODE PARAMS ((const void *)); @@ -876,10 +875,10 @@ special_symbol (hp, pfile) } case T_VERSION: - len = strlen (version_string); + len = strlen (hp->value.cpval); CPP_RESERVE (pfile, 3 + len); CPP_PUTC_Q (pfile, '"'); - CPP_PUTS_Q (pfile, version_string, len); + CPP_PUTS_Q (pfile, hp->value.cpval, len); CPP_PUTC_Q (pfile, '"'); CPP_NUL_TERMINATE_Q (pfile); return; |