Commit 9a38f84e by Jakub Jelinek Committed by Jakub Jelinek

read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.

	* read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare
	warning.

From-SVN: r244178
parent f55a925e
2017-01-06 Jakub Jelinek <jakub@redhat.com>
* read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare
warning.
2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com> 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
* config/arm/arm.md (<mcrr>): New. * config/arm/arm.md (<mcrr>): New.
......
...@@ -1255,7 +1255,7 @@ rtx_reader::read_rtx_code (const char *code_name) ...@@ -1255,7 +1255,7 @@ rtx_reader::read_rtx_code (const char *code_name)
if (strcmp (code_name, "reuse_rtx") == 0) if (strcmp (code_name, "reuse_rtx") == 0)
{ {
read_name (&name); read_name (&name);
long idx = atoi (name.string); unsigned idx = atoi (name.string);
/* Look it up by ID. */ /* Look it up by ID. */
gcc_assert (idx < m_reuse_rtx_by_id.length ()); gcc_assert (idx < m_reuse_rtx_by_id.length ());
return_rtx = m_reuse_rtx_by_id[idx]; return_rtx = m_reuse_rtx_by_id[idx];
......
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