Hi Dmitry, I use a somewhat older compiler that doesn't whine so much, so I don't see those warnings (don't get me started on how annoying gcc is lately).
Sent me a compile log and I'll fix them. Regards -- Pantelis > panto@orpheus:~/ti$ ${CROSS_COMPILE}gcc --version > arm-angstrom-linux-gnueabi-gcc (GCC) 4.5.4 20111126 (prerelease) > Copyright (C) 2010 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > On Apr 10, 2012, at 12:17 PM, Dmitry Antipov wrote: > On 04/09/2012 09:24 PM, Pantelis Antoniou wrote: > >> Here's a updated patch for builtin-sched.c that should fix your issues. >> >> Now when you issue list a field will show the amount of nsecs the >> task was burning cycles. >> >> It should also fix the crash you've encountered. > > Thanks, I'm trying it now. > > BTW, what's your compiler? I'm constantly seeing annoying but easy to fix > warnings: > > gcc -o builtin-sched.o -c -fno-omit-frame-pointer -ggdb3 -Wall -Wextra > -std=gnu99 -Werror -O6 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security > -Wformat-y2k -Wshadow -Winit-self -Wpacked -Wredundant-decls > -Wstrict-aliasing=3 -Wswitch-default -Wswitch-enum -Wno-system-headers > -Wundef -Wwrite-strings -Wbad-function-cast -Wmissing-declarations > -Wmissing-prototypes -Wnested-externs -Wold-style-definition > -Wstrict-prototypes -Wdeclaration-after-statement -fstack-protector-all > -Wstack-protector -Wvolatile-register-var -D_LARGEFILE64_SOURCE > -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iutil/include -Iarch/arm/include > -I/util -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE > -DLIBELF_NO_MMAP -DNO_NEWT_SUPPORT -pthread -I/usr/include/gtk-2.0 > -I/usr/lib/arm-linux-gnueabi/gtk-2.0/include -I/usr/include/atk-1.0 > -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 > -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 > -I/usr/lib/arm-linux-gnueabi/glib-2.0/include -I/usr/include/pixman-1 > -I/usr/include/freetype2 -I/usr/include/libpng12 -DNO_LIBPERL > -DNO_LIBPYTHON -DNO_STRLCPY builtin-sched.c > builtin-sched.c: In function 'calculate_bogoloops_value': > builtin-sched.c:342:34: error: variable 'delta_diff' set but not used > [-Werror=unused-but-set-variable] > builtin-sched.c: In function 'generate_spr_program': > builtin-sched.c:3293:28: error: variable 'atom_last' set but not used > [-Werror=unused-but-set-variable] > cc1: all warnings being treated as errors > > gcc -v ==> > > Using built-in specs. > COLLECT_GCC=gcc > COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6.1/lto-wrapper > Target: arm-linux-gnueabi > Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro > 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs > --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr > --program-suffix=-4.6 --enable-shared --enable-linker-build-id > --with-system-zlib --libexecdir=/usr/lib --without-included-gettext > --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 > --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu > --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin > --enable-objc-gc --enable-multilib --disable-sjlj-exceptions > --with-arch=armv7-a --with-float=softfp --with-fpu=vfpv3-d16 > --with-mode=thumb --disable-werror --enable-checking=release > --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi > Thread model: posix > gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) > > Dmitry _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev