This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/42500] Unnecessary call to memset to initialize array at Os
- From: "ramana at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2009 19:14:49 -0000
- Subject: [Bug c++/42500] Unnecessary call to memset to initialize array at Os
- References: <bug-42500-17659@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ramana at gcc dot gnu dot org 2009-12-30 19:14 -------
Ok (In reply to comment #3)
> 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 program, I got the
> same result as yours.
Ok that is a subject of a separate bug report that has been filed at PR42556.
Let this remain about just the redundant move of sp into r4.
Ramana
--
ramana at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|target |c++
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-12-30 19:14:49
date| |
Summary|unnecessary register move |Unnecessary call to memset
| |to initialize array at Os
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42500