]> gcc.gnu.org Git - gcc.git/commit
cpplex.c (parse_identifier): Fast-path optimize.
authorZack Weinberg <zack@gcc.gnu.org>
Mon, 10 Sep 2001 22:34:03 +0000 (22:34 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 10 Sep 2001 22:34:03 +0000 (22:34 +0000)
commit2c3fcba6dc56f848a07332ff005e2db9054dca26
tree68c8a29210b56a578f8917368423b34eaeea5d60
parentb210ec460ed82323e4a8fea320bf7a2c241e4369
cpplex.c (parse_identifier): Fast-path optimize.

* cpplex.c (parse_identifier): Fast-path optimize.  Avoid
copying identifier when we're just going to throw it away.
(parse_identifier_slow): New routine to handle abnormal cases.
(_cpp_lex_token): Update call site.

* hashtable.c (ht_lookup): Don't assume that the string we've
been given is NUL-terminated.
* system.h: #define __builtin_expect(a, b) to (a) if not
GCC >=3.0.

From-SVN: r45529
gcc/ChangeLog
gcc/cpplex.c
gcc/hashtable.c
gcc/system.h
This page took 0.061807 seconds and 5 git commands to generate.