diff options
author | Richard Henderson <rth@cygnus.com> | 1999-10-13 20:43:49 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-10-13 20:43:49 -0700 |
commit | bcdaba58ffeec82ffd876d353ad94b7317cca9b7 (patch) | |
tree | fe06a5500da62a2f74458666d1bd2734e008e04b /gcc/genflags.c | |
parent | a59f86402f8ffb904e9dccb10568371a890e1f30 (diff) | |
download | gcc-bcdaba58ffeec82ffd876d353ad94b7317cca9b7.zip gcc-bcdaba58ffeec82ffd876d353ad94b7317cca9b7.tar.gz gcc-bcdaba58ffeec82ffd876d353ad94b7317cca9b7.tar.bz2 |
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
Diffstat (limited to 'gcc/genflags.c')
-rw-r--r-- | gcc/genflags.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/genflags.c b/gcc/genflags.c index 916519e..45cf4fe 100644 --- a/gcc/genflags.c +++ b/gcc/genflags.c @@ -224,6 +224,7 @@ main (argc, argv) perror (argv[1]); return (FATAL_EXIT_CODE); } + read_rtx_filename = argv[1]; printf ("/* Generated automatically by the program `genflags'\n\ from the machine description file `md'. */\n\n"); |