Bug#317363: gcc 4.0.0-1 on powerpc the problem
Did some testing using this simple program.
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <arpa/inet.h>
int main() {
register int32_t *buf=buf;
int i;
IXDR_PUT_LONG(buf, i);
}
gcc-3.3.6 on i386 just gives a warning.
i386$ gcc --version
gcc (GCC) 3.3.6 (Debian 1:3.3.6-7)
i386$ gcc spike.c
spike.c: In function `main':
spike.c:9: warning: use of cast expressions as lvalues is deprecated
But gcc-4.0.0 (which is the default compiler for powerpc debian unstable)
gives an error.
powerpc$ gcc --version
gcc (GCC) 4.0.1 20050617 (prerelease) (Debian 4.0.0-11)
powerpc$ gcc spike.c
spike.c: In function 'main':
spike.c:9: error: invalid lvalue in increment
powerpc$ apt-cache policy gcc
gcc:
Installed: 4:4.0.0-1
Candidate: 4:4.0.0-1
Version table:
*** 4:4.0.0-1 0
500 http://ftp.mn-linux.org unstable/main Packages
500 http://mirrors.kernel.org unstable/main Packages
100 /var/lib/dpkg/status
--
Bob Tanner <tanner@real-time.com> | Phone : (952)943-8700
http://www.real-time.com, Minnesota, Linux | Fax : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288
Reply to: