This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Move dwarf2 frame tables to read-only section for AIX
- From: Andrew Dixie <andrewdixie50 at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Cary Coutant <ccoutant at google dot com>, jason at redhat dot com, David Edelsohn <dje dot gcc at gmail dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Wed, 26 Nov 2014 11:38:19 +1300
- Subject: Re: Move dwarf2 frame tables to read-only section for AIX
- Authentication-results: sourceware.org; auth=none
- References: <CAPrih1nkjp38uKZjDEgOdja_a9+Ozuso-UcYwYTHvpDymaKarQ at mail dot gmail dot com> <Pine dot LNX dot 4 dot 64 dot 1409221446170 dot 11876 at digraph dot polyomino dot org dot uk> <CAPrih1kNpjE1ZeyRq3QA+iDsLvbLYfojFqqdETDWd72zUsUKkA at mail dot gmail dot com>
Hi,
The following patch substantially reduces the memory requirements of
GCC compiled C++ programs on AIX.
Currently there are two different pieces of code to decide if a
read-only or a read-write section is required for exception
information:
- If the target supports named sections, there is good logic which
considers the dwarf encoding types, flag_pic and also has a target
hook for override.
- If the target doesn't support named sections, the only consideration
is flag_pic.
The key part of this patch is removing the second sub-optimal code and
using the optimal logic on all targets.
I understand David has approved the target specifics, and this just
needs a review for the dwarf changes. I believe I have CCed the dwarf
maintainers on this email.
https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01897.html
Thanks,
Andrew