On 4 May 2008, at 22:40, Perry Winkel wrote:
thank you for your response but it did not do the trick
if i do a truly 64-bit compile my addresses also become wider :-)
and this is not what i want yet.
64-Bit Transition Guide: Compiling 64-Bit Code Using GCC
-Wshorten-64-to-32
It works on my machine:
jeremyp@miranda:~ $cat foo.c
#include <stdint.h>
main()
{
int myint;
int64_t myintbig=412345678;
myint=myintbig;
return 0 ;
}
jeremyp@miranda:~ $gcc foo.c
jeremyp@miranda:~ $gcc -Wshorten-64-to-32 foo.c
foo.c: In function ‘main’:
foo.c:7: warning: implicit conversion shortens 64-bit value into a 32-bit value
jeremyp@miranda:~ $gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)