public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: 2.4.16 Compiler warning
@ 2001-11-28 21:58 Mikael Pettersson
  2001-11-28 22:14 ` [MOc]cda*mirabilos
  0 siblings, 1 reply; 4+ messages in thread
From: Mikael Pettersson @ 2001-11-28 21:58 UTC (permalink / raw)
  To: torvalds; +Cc: kai, linux-kernel, mblack

On Wed, 28 Nov 2001 16:19:35 +0100 (CET), Kai Germaschewski wrote:
>On Wed, 28 Nov 2001, Mike Black wrote:
>
>> This appears to be a non-fatal warning....does this need to be cleaned up?
>> [...]
>> {standard input}: Assembler messages:
>> {standard input}:1107: Warning: indirect lcall without `*'
>> {standard input}:1192: Warning: indirect lcall without `*'
>> [...]
>
>I believe this cannot be cleaned up in 2.4 because it breaks older 
>binutils. However, what about the appended patch for 2.5?

Kai's patch is almost identical to what I've been applying to every 2.3/2.4
kernel for the last year, ever since RedHat included a newer binutils
which printed these "indirect lcall without `*'" warnings.
My patch kit also fixes an occurrence in bootsect.S -- see below.

This really ought to go into 2.5 ASAP, IMHO.

/Mikael

--- linux-2.4.17-pre1/arch/i386/boot/bootsect.S.~1~	Fri Nov 23 22:40:14 2001
+++ linux-2.4.17-pre1/arch/i386/boot/bootsect.S	Wed Nov 28 20:33:06 2001
@@ -236,7 +236,7 @@
 rp_read:
 #ifdef __BIG_KERNEL__			# look in setup.S for bootsect_kludge
 	bootsect_kludge = 0x220		# 0x200 + 0x20 which is the size of the
-	lcall	bootsect_kludge		# bootsector + bootsect_kludge offset
+	lcall	*bootsect_kludge	# bootsector + bootsect_kludge offset
 #else
 	movw	%es, %ax
 	subw	$SYSSEG, %ax

^ permalink raw reply	[flat|nested] 4+ messages in thread
* 2.4.16 Compiler warning
@ 2001-11-28 10:48 Mike Black
  2001-11-28 15:19 ` Kai Germaschewski
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Black @ 2001-11-28 10:48 UTC (permalink / raw)
  To: linux-kernel

This appears to be a non-fatal warning....does this need to be cleaned up?
gcc 2.95.3

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-tri
graphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fn
o-common -pipe -mpreferred-stack-boundary=2 -march=i686    -c -o pci-pc.o
pci-pc.c
{standard input}: Assembler messages:
{standard input}:1107: Warning: indirect lcall without `*'
{standard input}:1192: Warning: indirect lcall without `*'
{standard input}:1279: Warning: indirect lcall without `*'
{standard input}:1361: Warning: indirect lcall without `*'
{standard input}:1372: Warning: indirect lcall without `*'
{standard input}:1383: Warning: indirect lcall without `*'
{standard input}:1470: Warning: indirect lcall without `*'
{standard input}:1482: Warning: indirect lcall without `*'
{standard input}:1494: Warning: indirect lcall without `*'
{standard input}:1975: Warning: indirect lcall without `*'
{standard input}:2068: Warning: indirect lcall without `*'

Here's all the lcall's in pci-pc.c:
        __asm__("lcall (%%edi); cld"
                        "lcall (%%edi); cld\n\t"
        __asm__("lcall (%%edi); cld\n\t"
                __asm__("lcall (%%esi); cld\n\t"
                __asm__("lcall (%%esi); cld\n\t"
                __asm__("lcall (%%esi); cld\n\t"
                __asm__("lcall (%%esi); cld\n\t"
                __asm__("lcall (%%esi); cld\n\t"
                __asm__("lcall (%%esi); cld\n\t"
                "lcall (%%esi); cld\n\t"
        __asm__("lcall (%%esi); cld\n\t"


________________________________________
Michael D. Black   Principal Engineer
mblack@csihq.com  321-676-2923,x203
http://www.csihq.com  Computer Science Innovations
http://www.csihq.com/~mike  My home page
FAX 321-676-2355


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

end of thread, other threads:[~2001-11-28 22:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-28 21:58 2.4.16 Compiler warning Mikael Pettersson
2001-11-28 22:14 ` [MOc]cda*mirabilos
  -- strict thread matches above, loose matches on Subject: below --
2001-11-28 10:48 Mike Black
2001-11-28 15:19 ` Kai Germaschewski

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