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

Mark Mitchell mark@codesourcery.com
Tue Nov 30 23:39:00 GMT 1999


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



More information about the Gcc-bugs mailing list