On Mon, 2010-03-15 at 13:09 -0400, Pavel Pavlov wrote: > > On Sun, 2010-03-14 at 20:15 -0400, Pavel Pavlov wrote: > > > > On Sun, 2010-03-14 at 04:25 -0400, Pavel Pavlov wrote: > > > > > Sorry, I should have give more info. Off course default vanilla > > armv4 > > > > will work, > > > > > but I need to enable armv7 + neon compilation. Currently, It > > won't > > > > compile the > > > > > code: error, unsupported ins for this arch. > > > > > > > > arm-mingw32ce-gcc --target-help mentions a lot of options. > > > > > > > > > That's a standard switch that's mentioned in arm-mingw32ce-gcc -- > > help. It doesn't mention anything on how to get list of supported > > target CPU's or arch's. > > > > Doesn't this bit help ? > > > > Danny > > > > > > Known ARM CPUs (for use with the -mcpu= and -mtune= options): > > cortex-m1, cortex-m3, cortex-r4f, cortex-r4, cortex-a9, cortex-a8, > > arm1156t2-s, mpcore, mpcorenovfp, arm1176jzf-s, arm1176jz-s, > > arm1136jf-s, > > arm1136j-s, arm1026ej-s, arm926ej-s, iwmmxt2, iwmmxt, xscale, > > arm1022e, > > arm1020e, arm10e, arm968e-s, arm966e-s, arm946e-s, arm9e, arm1020t, > > arm10tdmi, ep9312, arm940t, arm922t, arm920t, arm920, arm9tdmi, > > arm9, > > arm740t, arm720t, arm710t, arm7tdmi-s, arm7tdmi, strongarm1110, > > strongarm1100, strongarm110, strongarm, arm810, arm8, arm7dmi, > > arm7dm, > > arm7m, arm7500fe, arm7500, arm7100, arm710c, arm720, arm710, > > arm700i, > > arm700, arm70, arm7di, arm7d, arm7, arm620, arm610, arm600, arm60, > > arm6, > > arm3, arm250, arm2 > > > > Known ARM architectures (for use with the -march= option): > > iwmmxt2, iwmmxt, ep9312, armv7-m, armv7-r, armv7-a, armv7, armv6-m, > > armv6t2, > > armv6zk, armv6z, armv6k, armv6j, armv6, armv5te, armv5e, armv5t, > > armv5, > > armv4t, armv4, armv3m, armv3, armv2a, armv2 > > > > > Strange, I'm not getting this output (I tested with the 4.1.0 build) I was > testing with 4.1.0, it was added in 4.4.0. > If you are using 4.4.0, can you test this code: > > #include <windows.h> > int main(int argc, char **argv){ > return (long) &VirtualAlloc; > } > > 1) with -march=armv5te (works ok) > 2) with -march=armv7 (error: target CPU does not support ARM mode ?!?) > 3) with -mcpu=cortex-a8 (Assembler messages: Error: cannot represent > BFD_RELOC_ARM_MOVW relocation in this object file format) > > Does it mean that there is no proper support for newer cpu's in the version > of binutils that come with cegcc? Is it easier for me to upgrade? > > PS: Cmd line used: arm-mingw32ce-gcc -c /tmp/test.c -mcpu=cortex-a8
I get the same errors. I don't think it's binutils : when running these commands with -v, the program that gives the errors is the C compiler itself, see below. Not sure what's going on. Danny pavilion: {12} arm-mingw32ce-gcc -march=armv7 -o va-armv7.exe va.c -v Using built-in specs. Target: arm-mingw32ce Configured with: /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/gcc-4.4.0/configure --with-gcc --with-gnu-ld --with-gnu-as --build=i686-pc-linux-gnu --target=arm-mingw32ce --host=i686-pc-linux-gnu --prefix=/opt/mingw32ce --enable-threads=win32 --disable-nls --enable-languages=c,c++ --disable-win32-registry --disable-multilib --disable-interwork --without-newlib --enable-checking --with-headers --disable-__cxa_atexit Thread model: win32 gcc version 4.4.0 (GCC) COLLECT_GCC_OPTIONS='-march=armv7' '-o' 'va-armv7.exe' '-v' /opt/mingw32ce/libexec/gcc/arm-mingw32ce/4.4.0/cc1 -quiet -v -D__COREDLL__ -D__MINGW32__ -D__MINGW32CE__ -D__CEGCC_VERSION__ -idirafter ../include/w32api -idirafter ../../include/w32api va.c -quiet -dumpbase va.c -march=armv7 -auxbase va -version -o /tmp/ccCHQwYd.s ignoring nonexistent directory "/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/sys-include" ignoring nonexistent directory "../include/w32api" ignoring nonexistent directory "../../include/w32api" #include "..." search starts here: #include <...> search starts here: /opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/include /opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/include-fixed /opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/include End of search list. va.c:1: error: target CPU does not support ARM mode GNU C (GCC) version 4.4.0 (arm-mingw32ce) compiled by GNU C version 4.4.1, GMP version 4.3.2, MPFR version 2.4.2. GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 pavilion: {13} -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel