aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-08-30 00:01:12 +0000
committerAndrew Cagney <cagney@redhat.com>1997-08-30 00:01:12 +0000
commit4113ba4cd75baf802d84cb32f5d500082673ef41 (patch)
tree6f0f5c6874831f58b28af1f45f665d156f14b12e /sim/tic80
parentbf5ac1b8edb34601e1cb43238d690a6d6c00457e (diff)
downloadgdb-4113ba4cd75baf802d84cb32f5d500082673ef41.zip
gdb-4113ba4cd75baf802d84cb32f5d500082673ef41.tar.gz
gdb-4113ba4cd75baf802d84cb32f5d500082673ef41.tar.bz2
Passify GCC.
Diffstat (limited to 'sim/tic80')
-rw-r--r--sim/tic80/ChangeLog5
-rw-r--r--sim/tic80/insns4
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog
index 448dba9..ea81861 100644
--- a/sim/tic80/ChangeLog
+++ b/sim/tic80/ChangeLog
@@ -1,3 +1,8 @@
+Sat Aug 30 09:40:47 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * insns (do_trap): Unsigned `i' for unsigned iterator.
+ (do_trap): Ditto for comparison with getpid.
+
Wed Aug 27 18:13:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
* configure: Regenerated to track ../common/aclocal.m4 changes.
diff --git a/sim/tic80/insns b/sim/tic80/insns
index fbbe6ff..dfe70c5 100644
--- a/sim/tic80/insns
+++ b/sim/tic80/insns
@@ -1161,7 +1161,7 @@ void::function::do_trap:unsigned32 trap_number
}
case 4: /* WRITE */
{
- int i;
+ unsigned i;
if (GPR(2) == 1)
for (i = 0; i < GPR(6); i++)
{
@@ -1189,7 +1189,7 @@ void::function::do_trap:unsigned32 trap_number
break;
}
case 37: /* KILL */
- if (GPR (2) != getpid ())
+ if ( GPR (2) != (unsigned) getpid ())
{
int ret = kill (GPR(2), GPR(4));
if (ret < 0)