diff options
author | Richard Stallman <rms@gnu.org> | 1992-06-24 03:33:13 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-06-24 03:33:13 +0000 |
commit | 34a2d6f3c98299bce12cda2d215e6dee49ed641f (patch) | |
tree | 13ea0ca5043aef6cd6ce13b3693fa64d9e4ef7d1 | |
parent | 051e5bbf6ba91f419b6d3ff6a3a75e17dd2506dd (diff) | |
download | gcc-34a2d6f3c98299bce12cda2d215e6dee49ed641f.zip gcc-34a2d6f3c98299bce12cda2d215e6dee49ed641f.tar.gz gcc-34a2d6f3c98299bce12cda2d215e6dee49ed641f.tar.bz2 |
*** empty log message ***
From-SVN: r1260
-rw-r--r-- | gcc/cccp.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -752,10 +752,10 @@ struct assertion_hashnode { typedef struct assertion_hashnode ASSERTION_HASHNODE; /* Some definitions for the hash table. The hash function MUST be - computed as shown in hashf () below. That is because the rescan + computed as shown in hashf below. That is because the rescan loop computes the hash value `on the fly' for most tokens, in order to avoid the overhead of a lot of procedure calls to - the hashf () function. Hashf () only exists for the sake of + the hashf function. hashf only exists for the sake of politeness, for use when speed isn't so important. */ #define ASSERTION_HASHSIZE 37 @@ -2223,6 +2223,7 @@ do { ip = &instack[indepth]; \ obp = op->bufp; RECACHE; + beg_of_line = ibp; /* Our caller must always put a null after the end of @@ -2270,13 +2271,14 @@ do { ip = &instack[indepth]; \ } } - /* If this is expanding a macro definition, don't recognize - preprocessor directives. */ - if (ip->macro != 0) + /* Recognize preprocessor directives only when reading + directly from a file. */ + if (ip->fname == 0) goto randomchar; if (ident_length) goto specialchar; + /* # keyword: a # must be first nonblank char on the line */ if (beg_of_line == 0) goto randomchar; |