This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/10962] [3.3 regression] lookup_field is a linear search on a linked list (can be slow if large struct)
- From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Sep 2003 14:33:19 -0000
- Subject: [Bug c/10962] [3.3 regression] lookup_field is a linear search on a linked list (can be slow if large struct)
- References: <20030524022944.10962.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10962
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-09-05 14:33 -------
Subject: Bug 10962
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: pinskia@gcc.gnu.org 2003-09-05 14:33:07
Modified files:
gcc : ChangeLog c-decl.c
Log message:
2003-09-05 Andrew Pinski <pinskia@physics.uc.edu>
PR c/10962
* c-decl.c (field_decl_cmp): Add back function.
(finish_struct): Sort fields if number greater than 15
and no anymous structs/unions.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.721&r2=1.16114.2.722
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.356.2.12&r2=1.356.2.13