--- 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
--- 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
--- 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