/* opc2c.c --- generate C opcode decoder code from from .opc file
- Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ Copyright (C) 2005-2019 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU opcode library.
VaryRef * vlist;
int skipping_section = 0;
- if (argc > 2 && strcmp (argv[1], "-l") == 0)
- {
- sim_log = fopen (argv[2], "w");
- fprintf (stderr, "sim_log: %s\n", argv[2]);
- argc -= 2;
- argv += 2;
- }
-
if (argc < 2)
{
fprintf (stderr, "usage: opc2c infile.opc > outfile.opc\n");
store_opcode_bits (opcodes[i], 0, indirect);
}
+ printf ("/* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */\n");
+
dump_lines (&prefix_text, 0, 0);
emit_indirect (indirect, 0);