aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/read-rtl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5f4577d..236d40d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index e9c8068..2a8650b 100644
--- a/gcc/read-rtl.c
+++ b/gcc/read-rtl.c
@@ -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];