read-write constraint warnings



Hi all,

I see this has been raised before, but could not find a closure thread:

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

Since moving 2.6.15.7 --> 2.6.16.4 I get truck loads of these warnings.

nick@linuxamd:linux$ gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.0/specs
Configured
with: ../gcc-3.4.0/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.0

nick@linuxamd:linux$ ld -v
GNU ld version 2.15.90.0.3 20040415

There is no problem as kernels built with these warnings are fine, so a GCC
issue I presume?

Nick
--
"Person who say it cannot be done should not interrupt person doing it."
-Chinese Proverb
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: 2.6.5-rc1-tiny1 for small systems
    ... > This is the latest release of the -tiny kernel tree. ... looks like my gcc does not like ... Now, actual warnings for eisa-bus.c, followed by .config ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [PATCH]: Cleanup: Remove gcc format string warnings when compiling with -Wformat-securit
    ... Remove gcc format string warnings when compiling with -Wformat-security ...
    (Linux-Kernel)
  • Re: how to cast from (void*) to other types?
    ... warnings using gcc, I get no warnings. ... If not you are either not doing what you say or you are using a broken version of gcc. ... The reason I know that all working version of gcc produce a warning or error for the code you've described is that integer types, such as int, are not assignment compatible with pointers of any type, so for a compiler to conform to the standard it is *required* to produce a diagnostic and the code is *not* required to work even if you add in a cast to shut the compiler up. ...
    (comp.lang.c)
  • Re: howto get rid of pointer arguments differ in signedness
    ... Since the code Over the past decade or so, gcc ... Why is this warning different from any of the other warnings that gcc ... modify the compiler settings such that it is never displayed anymore. ... to fix it. ...
    (comp.os.linux.development.apps)
  • Re: K&R2 section 2.7 type conversions (exercise)
    ... fix the errors and warnings gcc is reporting. ... arrays to functions, how to match prototype with function definition, ... declaring objects before trying to use them and scope of various types ...
    (comp.lang.c)