[Bug c/10962] [3.3 regression] lookup_field is a linear search on a linked list (can be slow if large struct)

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 5 14:33:00 GMT 2003


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



More information about the Gcc-bugs mailing list