Compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ,

I am working on TI's DAVinci6446 SOC. Which has arm926ej-s as GPP and
dm64xx DSP processor.
I have tried to compile hello.c on GPP with ARM tool chain provided
with processor kit.
compiler version :-
arm_v5t_le-gcc (GCC) 3.4.3 (MontaVista 3.4.3-25.0.30.0501131 2005-07-23)
Copyright (C) 2004 Free Software Foundation, Inc.

I have tried to compile "hello.c" file.

/* hello.c */
#include<stdio.h>

int main(void)
{

   printf("\n ******* Hello World ****** \n");

   return 0;

}

I have compiled and link "hello.c" with following compiler options :

arm_v5t_le-gcc -march=armv5te -mapcs -mtune=arm926ej-s hello.c -o hello

with these options, I got following warning :

/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld:
/tmp/ccqzCnhR.o: warning: duplicate section `.note.gnu.arm.ident' has
different contents

I have used -march=armv5te and -mtune=arm926ej-s options with compiler
because our application has some modules which are implemented in
assembly language (Used arm926ej-s instruction set).

If I don't use these options with compiler then I got following errors
(This is a case with our application which has assembly modules) :-

/tmp/ccYTH0ex.s:48: Error: selected processor does not support `smulbb r0,r2,r2'
/tmp/ccYTH0ex.s:49: Error: selected processor does not support `qdadd ip,ip,r0'
/tmp/ccYTH0ex.s:54: Error: selected processor does not support `smulbb r0,r3,r3'
/tmp/ccYTH0ex.s:55: Error: selected processor does not support `qdadd lr,lr,r0'
/tmp/ccYTH0ex.s:60: Error: selected processor does not support `smulbb r0,r2,r2'

above instructions are used in our assembly modules which are
supported by arm926ej-s processor.

NOTE:- with -march=armv5te and -mtune=arm926ej-s compiler options , I
can generate executable and which runs on Davinci6446 successfully.
I am more concern about these warnings.


How can I remove these warnings?

I had posted this on montavista group, but i didn't get any reply.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux