Commit 4fe017f6 by Michael Collison Committed by Michael Collison

re PR other/57195 (Mode attributes with specific mode iterator can not be used…

re PR other/57195 (Mode attributes with specific mode iterator can not be used as mode iterators in *.md files)

2015-09-24  Michael Collison  <michael.collison@linaro.org>

	PR other/57195
	* read-md.c (read_name): Allow mode iterators inside angle
	brackets in rtl expressions.

From-SVN: r228102
parent 86f0bef3
2015-09-24 Michael Collison <michael.collison@linaro.org>
PR other/57195
* read-md.c (read_name): Allow mode iterators inside angle
brackets in rtl expressions.
2015-09-24 Vladimir Makarov <vmakarov@redhat.com> 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
PR target/61578 PR target/61578
...@@ -399,20 +399,31 @@ read_name (struct md_name *name) ...@@ -399,20 +399,31 @@ read_name (struct md_name *name)
{ {
int c; int c;
size_t i; size_t i;
int angle_bracket_depth;
c = read_skip_spaces (); c = read_skip_spaces ();
i = 0; i = 0;
angle_bracket_depth = 0;
while (1) while (1)
{ {
if (c == '<')
angle_bracket_depth++;
if ((c == '>') && (angle_bracket_depth > 0))
angle_bracket_depth--;
if (c == ' ' || c == '\n' || c == '\t' || c == '\f' || c == '\r' if (c == ' ' || c == '\n' || c == '\t' || c == '\f' || c == '\r'
|| c == EOF) || c == EOF)
break; break;
if (c == ':' || c == ')' || c == ']' || c == '"' || c == '/' if (angle_bracket_depth == 0)
|| c == '(' || c == '[')
{ {
unread_char (c); if (c == ':' || c == ')' || c == ']'
break; || c == '"' || c == '/' || c == '(' || c == '[')
{
unread_char (c);
break;
}
} }
if (i == sizeof (name->buffer) - 1) if (i == sizeof (name->buffer) - 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment