This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ patch] Cleanup way functions are deferred
- From: Mike Stump <mrs at apple dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Tue, 24 Jun 2003 16:43:35 -0700
- Subject: Re: [C++ patch] Cleanup way functions are deferred
On Saturday, June 21, 2003, at 12:16 PM, Jan Hubicka wrote:
the DECL_EXTERNAL/DECL_PUBLIC/DECL_COMDAT flags are set back and forth
by C++
frontend during finish_file apparently just to avoid confusion of
DECL_NEEDED.
This confuses my unit-at-a-time code as it sees wrong attributes of the
declarations once finish_file is done.
Do you introduce a speed regression? More passes on lists, or scanning
longer lists are the two main culprits I am thinking about. Ideally,
we want zero scans on long lists (all decls for example), and hitting
each one we emit, once.
Offhand, the patch looks safe or a speed improvement.
The case I'm thinking about is PCH compilation, 20 files, large C++ pch
header, small bodied C++ files.