x86_64 compile spewing hundreds of warnings - started 2.6.15-git8
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:
or this:
Quoted 5 lines · Martin Bligh
include/asm/bitops.h:65: warning: read-write constraint does not allow a registerWhat 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:
or this:
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
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.0Warnings 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 registerinclude/asm/bitops.h:30: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:65: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:65: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:30: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:30: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:65: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:65: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:30: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:30: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:65: warning: read-write constraint does not allow a registerinclude/asm/bitops.h:65: warning: read-write constraint does not allow a registerWhat do these mean? And how do we get rid of it?
Quoted 10 lines
Presumably caused by this:
or this:
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.
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.0Warnings 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