This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcc tree.c
- From: austern at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 2 Dec 2004 21:07:42 -0000
- Subject: gcc/gcc tree.c
CVSROOT: /cvs/gcc
Module name: gcc
Branch: apple-ppc-branch
Changes by: austern@gcc.gnu.org 2004-12-02 21:07:42
Modified files:
gcc : tree.c
Log message:
Backported from mainline: speed up lookup_attribute.
* tree.c (is_attribute_p): Split out to ..
(is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
of strlen and compare the string lengths before calling strcmp.
(lookup_attribute): Call is_attribute_with_length_p instead of
is_attribute_p.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.263.2.84.2.23&r2=1.263.2.84.2.24