This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: AIX/g++ const structs containing function addresses fail.



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]