From 02b219dd09ce2d8e9205fdd7932d08ac297f1ee1 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 8 Apr 2016 10:29:05 -0400 Subject: [PATCH 47/91] FIXME: parse LABEL_NUSES --- gcc/read-rtl.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index ee96e5dc..2429201 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -1690,7 +1690,18 @@ read_rtx_code (const char *code_name) case CODE_LABEL: { - /* TODO: parse LABEL_NUSES. */ + /* Parse LABEL_NUSES. */ + int ch = read_skip_spaces (); + if (ch != '[') + fatal_with_file_and_line ("missing '['"); + read_name (&name); + LABEL_NUSES (return_rtx) = atoi (name.string); + read_name (&name); + if (strcmp (name.string, "uses")) + fatal_with_file_and_line ("missing 'uses'"); + ch = read_char (); + if (ch != ']') + fatal_with_file_and_line ("missing ']'"); /* TODO: parse LABEL_KIND. */ /* For now, skip until closing ')'. */ do -- 1.8.5.3