[MIPS] Tinker with constraints in <asm/atomic.h> to fix build error.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 16 Jul 2008 11:07:05 +0000 (12:07 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 20 Jul 2008 13:38:18 +0000 (14:38 +0100)
commitd6d8a4635a8451ca3c6fa2aaf9bbf934d8e2097b
tree5c88efce6c89e6c3500a875ab285f1db5fa3cec3
parentc29d150305f7f655b7002cc31754c605e5c0d1a0
[MIPS] Tinker with constraints in <asm/atomic.h> to fix build error.

[...]
  CC      init/main.o
include/asm/bitops.h: In function `start_kernel':
include/asm/bitops.h:76: warning: asm operand 2 probably doesn't match
constraints
include/asm/bitops.h:76: warning: asm operand 2 probably doesn't match
constraints
include/asm/bitops.h:76: warning: asm operand 2 probably doesn't match
constraints
include/asm/bitops.h:76: error: impossible constraint in `asm'
include/asm/bitops.h:76: error: impossible constraint in `asm'
include/asm/bitops.h:76: error: impossible constraint in `asm'
make[1]: *** [init/main.o] Error 1
[...]

The build error is caused by the ages old gcc bug where gcc at the time of
analyzing the constraints is unable to figure out that an "i" constraint
actually can be satisfied and thus will abort unless an "r" is added to
the constraint.  For the actual code generation gcc will only ever use the
"i" constraint.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/bitops.h