This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: AIX/g++ const structs containing function addresses fail.
- To: nebrake at austin dot ibm dot com
- Subject: Re: AIX/g++ const structs containing function addresses fail.
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 30 Nov 1999 16:27:40 -0800
- Cc: mbrown at mediadb dot net, law at cygnus dot com, gcc-bugs at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <01d001bf3b53$d5f4fc70$2301a8c0@mediadb.net><38441C8B.ABD4EA47@austin.ibm.com>
A better fix (which should now be pretty easy to do) is to "lower" the
C++ trees before passing them to the RTL-generating back-end.
In the long term, I would like to see the initial parsing phase
produce high-level trees (where, for example, virtual function calls
are still just calls, and not indirections through vtables). Then,
gradually, this representation is lowered to a representation the
back-end can deal with more easily.
We now see whole functions at a time, and have an easy way of walking
over trees. So walking over the trees lowering all PTRMEM_CSTs (by
calling expand_ptrmem_cst) should be a cinch.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com