All of the changes need to be made in the ~/gcc/gcc/cp directory. These instructions have been written to work with gcc 3.0.4.
  1. In Make-lang.in:
  2. In semantics.c: Find the finish_translation_unit function and add these lines to the end of it:
    /* Do XML output if enabled.  */
    if (flag_xml)
      do_xml_output (flag_xml);
    
  3. In decl2.c:
  4. In lang-options.h: Add the lines
      { "-fxml=",
        N_("Enable XML output to a file (use with -fsyntax-only)") },
      { "-fno-xml", "" },
      { "-fxml-start=", "Specify start locations for XML dump (use with -fxml)" },
    
    to the bottom of the "-f" part of the list, just after the { "-fno-xref", "" }, line.
  5. In cp-tree.h: