This is the mail archive of the gcc-patches@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: ppc va-arg-10 fix


>>>>> "Franz" == Franz Sirl <Franz.Sirl-kernel@lauterbach.com> writes:

    Franz> Works fine for me, thanks. What about the make_lang_type_fn
    Franz> issue? Mind to comment on my questions or do you want to
    Franz> implement it yourself?

I'd just do:

  tree (*make_lang_type_fn) PROTO((enum tree_code)) = &make_node;

  tree make_lang_type (code)
    enum tree_code;
  {
    return *make_lang_type_fn (code);
  }

and, in whatever piece of the C++ front-end is called first:

  make_lang_type_fn = cp_make_lang_type;

(renaming make_lang_type to cp_make_lang_type, of course.).

--
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]