From bcdaba58ffeec82ffd876d353ad94b7317cca9b7 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 13 Oct 1999 20:43:49 -0700 Subject: rtl.c (dump_and_abort): Remove. * rtl.c (dump_and_abort): Remove. (fatal_with_file_and_line): New. (fatal_expected_char): New. (read_rtx_lineno, read_rtx_filename): New. (read_skip_spaces): Track line number. (read_name): Use fatal_with_file_and_line. (read_rtx): Use fatal_expected_char. Track line number. * rtl.h (read_rtx_filename, read_rtx_lineno): Declare. * print-rtl.c (print_rtx): Don't special case LABEL_REF argument if it isn't a CODE_LABEL. * genattr.c (main): Set read_rtx_filename. * genattrtab.c (main): Likewise. * gencodes.c (main): Likewise. * genconfig.c (main): Likewise. * genemit.c (main): Likewise. * genextract.c (main): Likewise. * genflags.c (main): Likewise. * genopinit.c (main): Likewise. * genoutput.c (main): Likewise. * genpeep.c (main): Likewise. * genrecog.c (decision_test.u.insn): Add `lineno'. (pattern_lineno, error_count): New variables. (message_with_line): New. (add_to_sequence): Break out checking code to ... (validate_pattern): ... here. Detect SET_DEST matching CONST_INT. (merge_insn): Use message_with_line. (make_insn_sequence): Use validate_pattern. Record insn lineno. (main): Set read_rtx_filename, pattern_lineno. Exit early on error. From-SVN: r29957 --- gcc/genpeep.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/genpeep.c') diff --git a/gcc/genpeep.c b/gcc/genpeep.c index 5d6a4925e3a..992381dfb8b 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -424,6 +424,7 @@ main (argc, argv) perror (argv[1]); return (FATAL_EXIT_CODE); } + read_rtx_filename = argv[1]; printf ("/* Generated automatically by the program `genpeep'\n\ from the machine description file `md'. */\n\n"); -- cgit v1.2.1