linux-mips
[Top] [All Lists]

Re: modutils bug? 'if' clause executes incorrectly

To: Florian Lohoff <flo@rfc822.org>
Subject: Re: modutils bug? 'if' clause executes incorrectly
From: Cort Dougan <cort@fsmlabs.com>
Date: Wed, 11 Oct 2000 16:38:27 -0600
Cc: linux-mips@oss.sgi.com, linux-mips@fnet.fr, Ralf Baechle <ralf@uni-koblenz.de>
In-reply-to: <20001012002619.B678@paradigm.rfc822.org>; from Florian Lohoff on Thu, Oct 12, 2000 at 12:26:19AM +0200
References: <20001010224317.I733@hq.fsmlabs.com> <20001012002619.B678@paradigm.rfc822.org>
Sender: owner-linux-mips@oss.sgi.com
} On Tue, Oct 10, 2000 at 10:43:17PM -0600, Cort Dougan wrote:
} > if A
} >   B
} > else
} >   C
} > 
} > in the order A, C, B when A is false and correctly (A, B) when A is true.
} > 
} > This is with GCC version egcs-2.90.29 980515 (egcs-1.0.3 release) and
} > binutils 2.8.1 (with BFD 2.8.1).
} > 
} > The asm in this routine looks good and I can keep the code from failing by
} > removing the request_irq() and replacing it with something else that
} > doesn't call into the kernel.  I can't reproduce this in user-code or in
} > kernel code.
} > 
} > Does anyone have any suggestions?  Perhaps a suggestion for modutils
} > version?
} 
} Please send the resulting asm code - I hear someone whispering
} "Branch delay slot".

.c and gzip'd .s attached.

Compiled with: mips-linux-gcc -v -G 0 -mno-abicalls -fno-pic -ffixed-8__
-D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -O2   -c 
-fomit-frame-pointer -pipe -mcpu=r8000 -mips2 -mlong-calls
-I/sys/linux/include -I/sys/rtlinux/include -I/sys/rtlinux/include/compat
-I/sys/rtlinux/include/posix -Wall -Wstrict-prototypes -g -D__RTL__
-D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -O2   -c -o bug.o main/bug.c

Attachment: bug.c
Description: Text document

Attachment: bug.s.gz
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>