From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 622 invoked by alias); 23 Apr 2005 22:49:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32478 invoked by uid 48); 23 Apr 2005 22:49:39 -0000 Date: Sat, 23 Apr 2005 22:49:00 -0000 Message-ID: <20050423224939.32477.qmail@sourceware.org> From: "vda at port dot imtp dot ilyichevsk dot odessa dot ua" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050423223032.21182.vda@port.imtp.ilyichevsk.odessa.ua> References: <20050423223032.21182.vda@port.imtp.ilyichevsk.odessa.ua> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug rtl-optimization/21182] gcc can use registers but uses stack instead X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg03346.txt.bz2 List-Id: ------- Additional Comments From vda at port dot imtp dot ilyichevsk dot odessa dot ua 2005-04-23 22:49 ------- Aha! I found out that gcc will use registers with -O3, but not with -O2. # gcc -O3 serpent.c -S -o serpent-O3.s # gcc -O2 serpent.c -S -o serpent-O2.s # ls -l -rw-r--r-- 1 root root 27975 Apr 24 01:47 serpent-O2.s -rw-r--r-- 1 root root 21566 Apr 24 01:47 serpent-O3.s # wc -l serpent-O2.s serpent-O3.s 1558 serpent-O2.s 1265 serpent-O3.s 2823 total I don't have 4.0.0 here yet... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21182