This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/36498] [4.3 Regression] time/memory hog for large c++ source.
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2008 20:14:48 -0000
- Subject: [Bug other/36498] [4.3 Regression] time/memory hog for large c++ source.
- References: <bug-36498-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pluto at agmk dot net 2008-06-11 20:14 -------
(In reply to comment #7)
> Then the following should fix it.
>
> Index: tree-flow-inline.h
> ===================================================================
> --- tree-flow-inline.h (revision 135770)
> +++ tree-flow-inline.h (working copy)
> @@ -1712,6 +1712,11 @@ var_can_have_subvars (const_tree v)
> if (!DECL_P (v) || MTAG_P (v))
> return false;
>
> + /* Unions cannot have subvars. */
> + if (TREE_CODE (TREE_TYPE (v)) == UNION_TYPE
> + || TREE_CODE (TREE_TYPE (v)) == QUAL_UNION_TYPE)
> + return false;
> +
> /* Aggregates can have subvars. */
> if (AGGREGATE_TYPE_P (TREE_TYPE (v)))
> return true;
>
with this change g++ needs ~1GB and ~4minutes.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36498