This is the mail archive of the gcc@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]

-fvtable-gc


So I was attempting this afternoon to implement the thing properly,
i.e. with notes and calls into varasm.c instead of random asm hackery
in cp/foo.c.  But I was defeated in my quest to figure out how to
differentiate method calls from normal calls, and member address
taking at all.

What is METHOD_CALL_EXPR if not for calling methods?  If I have 

  struct F { virtual void foo(); };
  void bar(F *f) { f->foo(); } 

I get a CALL_EXPR.  If I have

  typedef void (F::*F_ptr)();
  F_ptr baz() { return &F::foo; }

I get an OFFSET_REF, which isn't actually documented anywhere,
and I can't figure out what it means exactly.


r~


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