Skip to contentSkip to conversation

x86_64 compile spewing hundreds of warnings - started 2.6.15-git8

DISCUSSION Martin Bligh 2 participants 4 messages Mar 2, 2006 – Jul 31, 2006

lore
Share & tools
lore
#0 lore raw

between 2.6.15-git7 and 2.6.15-git8 we started getting hundreds of compile warnings:

-git7: http://test.kernel.org/20295/debug/test.log.0
-git8: http://test.kernel.org/20402/debug/test.log.0

Warnings look like this:

include/asm/bitops.h: In function `load_elf32_binary':
include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register

What do these mean? And how do we get rid of it?

Presumably caused by this:

http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=636dd2b7def5c9c72551b51d4d516a65c269de08

or this:

http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=92934bcbf96bc9dc931c40ca5f1a57685b7b813b

#1 lore raw
Quoted 5 lines · Martin Bligh

include/asm/bitops.h:65: warning: read-write constraint does not allow a register

What do these mean?

They mean you have a buggy compiler.

Quoted 9 lines

And how do we get rid of it?

Presumably caused by this:

http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=636dd2b7def5c9c72551b51d4d516a65c269de08

or this:

http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=92934bcbf96bc9dc931c40ca5f1a57685b7b813b

It was the bitops.h constrain change.

The problem is that reverting them would be readding the problem. Maybe we need to #ifdef it.

-Andi

#2 lore raw
In reply to Martin Bligh
Quoted 24 lines · Martin Bligh

between 2.6.15-git7 and 2.6.15-git8 we started getting hundreds of compile warnings:

(quoted diff) +0 -2
-git7: http://test.kernel.org/20295/debug/test.log.0
-git8: http://test.kernel.org/20402/debug/test.log.0

Warnings look like this:

include/asm/bitops.h: In function `load_elf32_binary':
include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:30: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register include/asm/bitops.h:65: warning: read-write constraint does not allow a register

What do these mean? And how do we get rid of it?

Quoted 10 lines

Presumably caused by this:

http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=636dd2b7def5c9c72551b51d4d516a65c269de08

or this:

http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=92934bcbf96bc9dc931c40ca5f1a57685b7b813b

There were rumblings about changing these checks around a bit, but nothing happened and the warnings are still there ... any chance of fixing this?

M.

#3 lore raw
Quoted 4 lines · Martin Bligh
Quoted 3 lines · Martin Bligh

between 2.6.15-git7 and 2.6.15-git8 we started getting hundreds of compile warnings:

Quoted 8 lines
Quoted 8 lines
(quoted diff) +0 -2
-git7: http://test.kernel.org/20295/debug/test.log.0
-git8: http://test.kernel.org/20402/debug/test.log.0

Warnings look like this:

include/asm/bitops.h: In function `load_elf32_binary':
include/asm/bitops.h:30: warning: read-write constraint does not allow a register

Hmm, as far as I can see I do the same as i386 with these constraints. Are you sure i386 doesn't warn either?

-Andi