Re: ia64 gcc compile prob

Bill Nottingham (notting@redhat.com)
Thu, 18 Oct 2001 14:40:43 -0400


--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Todd (todd@unm.edu) said:
> scsi_ioctl.c: In function `scsi_ioctl_send_command':
> scsi_ioctl.c:366: Internal compiler error in rws_access_regno, at
> config/ia64/ia64.c:3689

It's a compiler bug; fixed in a later release (2.96-9x, 3.0).
Attached is a hack workaround patch.

Bill

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="linux-2.4.3-ia64-compile.patch"

--- linux/drivers/scsi/scsi_ioctl.c.foo Tue May 29 12:59:24 2001
+++ linux/drivers/scsi/scsi_ioctl.c Tue May 29 12:58:01 2001
@@ -200,6 +200,7 @@
unsigned int needed, buf_needed;
int timeout, retries, result;
int data_direction;
+ int foo;

if (!sic)
return -EINVAL;
@@ -209,10 +210,12 @@
if (verify_area(VERIFY_READ, sic, sizeof(Scsi_Ioctl_Command)))
return -EFAULT;

- if(__get_user(inlen, &sic->inlen))
+ foo = __get_user(inlen, &sic->inlen);
+ if (foo)
return -EFAULT;

- if(__get_user(outlen, &sic->outlen))
+ foo = __get_user(outlen, &sic->outlen);
+ if (foo)
return -EFAULT;

/*

--TB36FDmn/VVEgNH/--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/