This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7441: large compilation time regression with string array initialization
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, tsv at solvo dot ru
- Date: 28 Oct 2002 21:40:40 -0000
- Subject: Re: c++/7441: large compilation time regression with string array initialization
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, tsv at solvo dot ru, gcc-gnats at gcc dot gnu dot org
Old Synopsis: compilation by g++ take long time
New Synopsis: large compilation time regression with string array initialization
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Oct 28 13:40:39 2002
State-Changed-Why:
I can confirm this. Compile times go through the roof from
1.5 sec (gcc 2.95) to about 3 minutes (3.2.1 and CVS). The
underlying problem is initialization of an insanely large
array of string constants.
This is a C++ front end problem, since if the file is
compiled with the C front end, compile times are negligible.
Note that for the problem, one needs not even specify
optimization flags. Thus, there is no way to avoid it...
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7441