C IMA slows down the compile way down.
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01479.html>. I posted it too late for including it into 4.0.0.
Any movement here?
Updated patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-03/msg02251.html>.
Under http://gcc.gnu.org/ml/gcc-patches/2005-03/msg02316.html the patch was okayed with small changes. Can it be in 4.1.0?
I will be committing this in the next couple of hours.
Fixed.
Subject: Bug 18851 CVSROOT: /cvs/gcc Module name: gcc Changes by: pinskia@gcc.gnu.org 2005-10-02 19:15:59 Modified files: gcc : ChangeLog c-typeck.c Log message: 2005-10-02 Andrew Pinski <pinskia@physics.uc.edu> PR c/18851 * c-typeck.c (tagged_tu_seen): Rename to ... (tagged_tu_seen_cache): this and add val field. (comptypes): Move functional to comptypes_internal and free tagged_tu_seen. (comptypes_internal): New function and call comptypes_internal instead of comptypes. Speed up by sibcalling tagged_types_tu_compatible_p. (alloc_tagged_tu_seen): New function (free_all_tagged_tu_seen_up_to): New function. (tagged_types_tu_compatible_p): Return the val of the seen two types. Add that the two types are the same to tagged_tu_seen_base if they are and call comptypes_internal instead of comptypes. <case UNION_TYPE>: Speed up common type where the fields are in the same order. (function_types_compatible_p): Call comptypes_internal instead of comptypes. (type_lists_compatible_p): Likewise. (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.10066&r2=2.10067 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.479&r2=1.480