This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13677] Generates Sub-Optimal Code in 'for' Loops
- From: "theman at josephdwagner dot info" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2004 17:54:05 -0000
- Subject: [Bug optimization/13677] Generates Sub-Optimal Code in 'for' Loops
- References: <20040114054033.13677.theman@josephdwagner.info>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From theman at josephdwagner dot info 2004-01-14 17:53 -------
I would like to point out that this is not a problem in the optimizer. It is
a problem in the code generation component.
Compiled with command:
gcc -v -save-temps -S -masm=intel -pipe -std=gnu99 -O0 -o bug13677.S
bug13677.c
Resulting output:
gcc: warning: -pipe ignored because -save-temps specified
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: /usr/src/gcc-3.3.2/configure --enable-shared --with-gnu-as
--with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld
--enable-threads
Thread model: posix
gcc version 3.3.2
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/cc1 -E -quiet -v -D__GNUC__=3
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 bug13677.c -masm=intel -std=gnu99
-O0
bug13677.i
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/cc1 -fpreprocessed bug13677.i
-quiet
-dumpbase bug13677.c -masm=intel -auxbase-strip bug13677.S -O0 -std=gnu99
-version -o
bug13677.S
GNU C version 3.3.2 (i686-pc-linux-gnu)
compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32016
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13677