2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-23 14:11:05 +08:00

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
This commit is contained in:
Jakub Jelinek 2017-01-06 19:40:31 +01:00 committed by Jakub Jelinek
parent f55a925e02
commit 9a38f84e27
2 changed files with 6 additions and 1 deletions

@ -1,3 +1,8 @@
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>
* config/arm/arm.md (<mcrr>): New.

@ -1255,7 +1255,7 @@ rtx_reader::read_rtx_code (const char *code_name)
if (strcmp (code_name, "reuse_rtx") == 0)
{
read_name (&name);
long idx = atoi (name.string);
unsigned idx = atoi (name.string);
/* Look it up by ID. */
gcc_assert (idx < m_reuse_rtx_by_id.length ());
return_rtx = m_reuse_rtx_by_id[idx];