[Bug target/42500] unnecessary register move

2009-12-29 Thread ramana at gcc dot gnu dot org
--- Comment #1 from ramana at gcc dot gnu dot org 2009-12-30 00:08 --- What architecture options are you using ? With .ident GCC: (GNU) 4.5.0 20091229 (experimental) and -O2 I get the redundant move into r4 of sp . But for -Os I get the following very different code. I

[Bug target/42500] unnecessary register move

2009-12-29 Thread ramana at gcc dot gnu dot org
--- Comment #2 from ramana at gcc dot gnu dot org 2009-12-30 00:10 --- (In reply to comment #1) What architecture options are you using ? With .ident GCC: (GNU) 4.5.0 20091229 (experimental) and -O2 I get the redundant move into r4 of sp . But for -Os I get the

[Bug target/42500] unnecessary register move

2009-12-29 Thread carrot at google dot com
--- Comment #3 from carrot at google dot com 2009-12-30 06:46 --- My complete command line: /home/carrot/compiler/armobj/gcc/cc1plus -fpreprocessed testH.ii -quiet -dumpbase testH.cpp -auxbase-strip obj/./testH.o -Os -o testH.s Please compile it as C++ program. When I compiled it as C