mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ia64 gcc compile prob
@ 2001-10-18 17:05 Todd
  2001-10-18 18:40 ` Bill Nottingham
  0 siblings, 1 reply; 2+ messages in thread
From: Todd @ 2001-10-18 17:05 UTC (permalink / raw)
  To: linux-kernel

folx,

i've searched archives & the web and can't find reference to this:

i'm getting:

gcc -D__KERNEL__
-I/home/jotto/Cplant/top.10-17/compute/OS/linux-patches/linux-2.4.7/linux/include
-Wall -Wstrict-prototypes -Wno-trigraphs -g -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe  -ffixed-r13
-mfixed-range=f10-f15,f32-f127 -falign-functions=32 -DMODULE   -c -o
scsi_ioctl.o scsi_ioctl.c
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


when trying to compile scsi_ioctl.c on ia64 using

gcc -v
Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81)

on 2.4.7 and 2.4.11 patched with the appropriate patches from ports/ia64.

are there known issues with gcc 2.96 on ia64 and if so, what are the
known slns?  thanks,

=========================================================
Todd Underwood, todd@unm.edu

=========================================================


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ia64 gcc compile prob
  2001-10-18 17:05 ia64 gcc compile prob Todd
@ 2001-10-18 18:40 ` Bill Nottingham
  0 siblings, 0 replies; 2+ messages in thread
From: Bill Nottingham @ 2001-10-18 18:40 UTC (permalink / raw)
  To: Todd; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

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

[-- Attachment #2: linux-2.4.3-ia64-compile.patch --]
[-- Type: text/plain, Size: 616 bytes --]

--- 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;
 
 	/*

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-18 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-18 17:05 ia64 gcc compile prob Todd
2001-10-18 18:40 ` Bill Nottingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®