This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATH] fix c/10962, slow lookup_field


This patch just adds back stuff that were removed when support for anonymous structs/unions.

Bootstrapped on powerpc-apple-darwin and checked that it removes the slow part:

[omni:~/src/gccPRs/10760] pinskia% sh biggen.sh 10000>big.c
[omni:~/src/gccPRs/10760] pinskia% time gcc big.c -S
3.400u 0.190s 0:03.67 97.8%     0+0k 0+2io 0pf+0w
[omni:~/src/gccPRs/10760] pinskia% sh biggen.sh 20000>big.c
[omni:~/src/gccPRs/10760] pinskia% time gcc big.c -S
7.990u 0.390s 0:08.71 96.2%     0+0k 0+2io 0pf+0w


ChangeLog: 2003-05-25 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.

Patch:

Attachment: fixPR10962.diff
Description: Binary data



Thanks,
Andrew Pinski

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]