+2015-09-08 Tom de Vries <tom@codesourcery.com>
+
+ * Makefile.in (generated_files): Add params.list.
+ (params.list, s-params.list): Add rule.
+ * params.h (enum compiler_param): Include params-list.h. Move define
+ DEFPARAM, include params.def and undef DEFPARAM ...
+ * params-list.h: ... here. New file.
+
2015-09-08 David Malcolm <dmalcolm@redhat.com>
* pretty-print.h (printer_fn): Fix typo in comment.
$(ALL_GTFILES_H) gtype-desc.c gtype-desc.h gcov-iov.h \
options.h target-hooks-def.h insn-opinit.h \
common/common-target-hooks-def.h pass-instances.def \
- c-family/c-target-hooks-def.h
+ c-family/c-target-hooks-def.h params.list
#\f
# How to compile object files to run on the build machine.
$(mkinstalldirs) $(DESTDIR)$(man1dir)
$(mkinstalldirs) $(DESTDIR)$(man7dir)
+params.list: s-params.list; @true
+s-params.list: $(srcdir)/params-list.h $(srcdir)/params.def
+ $(CPP) $(srcdir)/params-list.h | sed 's/^#.*//;/^$$/d' > tmp-params.list
+ $(SHELL) $(srcdir)/../move-if-change tmp-params.list params.list
+ $(STAMP) s-params.list
+
PLUGIN_HEADERS = $(TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
toplev.h $(DIAGNOSTIC_CORE_H) $(BASIC_BLOCK_H) $(HASH_TABLE_H) \
tree-ssa-alias.h $(INTERNAL_FN_H) gimple-fold.h tree-eh.h gimple-expr.h \
--- /dev/null
+#define DEFPARAM(enumerator, option, nocmsgid, default, min, max) \
+ enumerator,
+#include "params.def"
+#undef DEFPARAM
enum compiler_param
{
-#define DEFPARAM(enumerator, option, nocmsgid, default, min, max) \
- enumerator,
-#include "params.def"
-#undef DEFPARAM
+#include "params.list"
LAST_PARAM
};