[PATCH] QT 4.4.0-snapshot-20070420 [missing q_atomic_*]
Stefan Teleman
stefan.teleman at gmail.com
Mon Apr 23 13:57:25 BST 2007
On Monday 23 April 2007 05:20, Thiago Macieira wrote:
> However, the use of quads in x86-64 seems wrong. The pointer being
> passed in q_atomic_fetch_and_add_int is a 'volatile int *', so it's
> 32-bit, not 64-bit.
/* testamd64ptr.c */
int
main(int argc, char* argv[])
{
(void) fprintf(stderr, "sizeof(int*) = %ld\n", sizeof(int*));
return 0;
}
[steleman at redneck][~/tmp][04/23/2007 8:36:23][594]>> ./testamd64ptr
sizeof(int*) = 8
[steleman at redneck][~/tmp][04/23/2007 8:36:52][595]>> echo $CFLAGS
-Xc -erroff=%all -errshort=full -errfmt=error -errwarn=%none -xO3 -s \
-xjobs=2 -xregs=no%frameptr -dalign -xprefetch=auto \
-xprefetch_auto_type=indirect_array_access -xprefetch_level=3 \
-xbuiltin=%all -xcsi -xinline=%none -xustr=ascii_utf16_ushort \
-z combreloc -z redlocsym -z nodefaultlib -z now -z rescan \
-z absexec -xildoff -xldscope=symbolic -xrestrict=%all \
-xF=%none -xalias_level=std -xsafe=mem -xthreadvar -lc \
-lpthread -lposix4 -lrt -lpthread -lposix4 -lrt -mt \
-D_REENTRANT -D__EXTENSIONS__=1 \
-D_LARGEFILE64_SOURCE \
-D_FILE_OFFSET_BITS=64 -D_XPG4 -D_XPG4_2 -D_XPG5 \
-D_XPG6 -D_POSIX_PTHREAD_SEMANTICS \
-D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L \
-D__XOPEN_OR_POSIX -D_STRICT_STDC \
-D_STRICT_STDC__ -D_STDC_C99 \
-DSOLARIS -DSOLARIS10 -DUSE_SOLARIS -DNDEBUG \
-DNO_DEBUG -KPIC -xtarget=opteron -xarch=amd64 \
-xchip=opteron -xcache=8/64/4:256/128/8 -xO3 -s
--Stefan
--
Stefan Teleman 'Nobody Expects the Spanish Inquisition'
KDE e.V. -Monty Python
stefan.teleman at gmail.com
More information about the kde-core-devel
mailing list