EmbDev.net

Forum: ARM programming with GCC/GNU tools Bug in gcc 4.0.2?


Author: Karsten (Guest)
Posted on:

Rate this post
0 useful
not useful
Hello all,

I'm confused at the moment. I work with WinARM Version 20060125. This
Version contained the gcc 4.0.2.

When I try to compile follows then an big endian binary is the result.
Thats expected and correct:

@arm-elf-gcc -c -mcpu=arm7tdmi -T../system_source/TMS470R1B1M-RAM.ld
-T../system_source/reg_map.ld -Wall
-Wextra -Wshadow -Wpointer-arith -Wcast-align -Wsign-compare
-Waggregate-return -Wunused -D RUN_FROM_RAM
-D GCC_ARM7 -I. -I.. -I../include -g -O0 -mbig-endian -v
-Wbad-function-cast -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations
BinFram.c -o BinFram.o


And now my confusion. When I try to compile follows it was created a
little endian binary. And this isn't expected. Is it a bug in the gcc?
The only one difference is that the source file is located in an
underlayed folder.

@arm-elf-gcc -c -mcpu=arm7tdmi -T../system_source/TMS470R1B1M-RAM.ld
-T../system_source/reg_map.ld -Wall
-Wextra -Wshadow -Wpointer-arith -Wcast-align -Wsign-compare
-Waggregate-return -Wunused -D RUN_FROM_RAM
-D GCC_ARM7 -I. -I.. -I../include -g -O0 -mbig-endian -v
-Wbad-function-cast -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations
BinFram/BinFram.c -o BinFram/BinFram.o

I'm very happy for each hint.

Regards,
Karsten

Author: Karsten (Guest)
Posted on:

Rate this post
0 useful
not useful
Hello again,

also tests with WinARM Version 20060331 and the gcc 4.1.0 produced the
same results. :-(

Regards,

Karsten

Author: Karsten (Guest)
Posted on:

Rate this post
0 useful
not useful
Error founded!

It's located in my makefile. Sorry!

Karsten

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.