+2022-05-20 Gaius Mulley <gaius.mulley@southwales.ac.uk>
+
+ * m2pp.cc: (Renamed from m2pp.c). Comments tidied up.
+ * Make-lang.in: m2pp.c changed to m2pp.cc.
+ (m2rte.so) Added insn-flags.h as a dependent
+
2022-05-19 Gaius Mulley <gaius.mulley@southwales.ac.uk>
* gm2-gcc/m2builtins.cc: Corrected comments (specifically
chmod a+x $(DESTDIR)$(plugin_resourcesdir)/m2rte$(exeext).so
plugin/m2rte$(exeext).so: $(srcdir)/m2/plugin/m2rte.cc $(GCC_HEADER_DEPENDENCIES_FOR_M2) \
- insn-attr-common.h $(generated_files)
+ insn-attr-common.h insn-flags.h $(generated_files)
test -d plugin || mkdir plugin
$(PLUGINCC) $(PLUGINCFLAGS) -fno-rtti -I. -I$(srcdir) -I$(srcdir)/m2 -I$(srcdir)/m2/gm2-gcc -I$(srcdir)/../include -I$(srcdir)/../libcpp/include -Wall $(GMPINC) -Wno-literal-suffix -fPIC -c -o plugin/m2rte.o $(srcdir)/m2/plugin/m2rte.cc
$(PLUGINCC) $(PLUGINCFLAGS) $(PLUGINLIBS) -fno-rtti plugin/m2rte.o -shared -o $@
$(COMPILER) -c -DSET_WORD_SIZE=INT_TYPE_SIZE $(ALL_COMPILERFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
-m2/m2pp.o : $(srcdir)/m2/m2pp.c $(GCC_HEADER_DEPENDENCIES_FOR_M2)
+m2/m2pp.o : $(srcdir)/m2/m2pp.cc $(GCC_HEADER_DEPENDENCIES_FOR_M2)
$(COMPILER) -c -g -DGM2 $(ALL_COMPILERFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
$(COMPILER) -c -g -I$(GM2GCC) $(ALL_COMPILERFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
-c-family/m2pp.o : $(srcdir)/m2/m2pp.c $(GCC_HEADER_DEPENDENCIES_FOR_M2)
+c-family/m2pp.o : $(srcdir)/m2/m2pp.cc $(GCC_HEADER_DEPENDENCIES_FOR_M2)
$(COMPILER) -c -g $(ALL_COMPILERFLAGS) \
$(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
struct m2stack_t *next;
} stack;
-/* Prototypes */
+/* Prototypes. */
static pretty *initPretty (int bits);
static pretty *dupPretty (pretty *s);
static stack *stackPtr = NULL;
-/* */
+/* do_pf helper function for pf. */
void
do_pf (tree t, int bits)
}
}
-#if 1
/* hextree - displays the critical fields for function, block and
bind_expr trees in raw hex. */
killPretty (state);
}
}
-#endif
-/* */
+/* translation produce a pseudo implementation module from the tree t. */
static void
m2pp_translation (pretty *s, tree t)
{
switch (TREE_CODE (t))
{
-
case FUNCTION_DECL:
if (!DECL_EXTERNAL (t))
{
m2pp_print (s, ";\n");
}
-/* */
+/* args displays each argument in an iter list by calling expression. */
static void
m2pp_args (pretty *s, tree e)