This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/5374: NON_OPTIMAL CODE GENERATED FOR SH4
- From: naveens at noida dot hclt dot com
- To: gcc-gnats at gcc dot gnu dot org
- Cc: sanjivg at noida dot hcltech dot com
- Date: 14 Jan 2002 10:30:58 -0000
- Subject: optimization/5374: NON_OPTIMAL CODE GENERATED FOR SH4
- Reply-to: naveens at noida dot hclt dot com
>Number: 5374
>Category: optimization
>Synopsis: NON_OPTIMAL CODE GENERATED FOR SH4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: pessimizes-code
>Submitter-Id: net
>Arrival-Date: Mon Jan 14 02:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Naveen Sharma.
>Release: unknown-1.0
>Organization:
>Environment:
System: Linux 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: sh-unknown-linux-gnu
configured with: ../gcc/configure --target=sh-linux
--prefix=/home/naveens/local
--with-as=/home/gcc/gnu_env/tools/sh4/bin/sh-linux-as
--with-ld=/home/gcc/gnu_env/tools/sh4/bin/sh-linux-ld
--with-headers=/usr/sh4-linux/include --with-libs=/usr/sh4-linux/lib
>Description:
refer the following link for details:
http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00531.html
>How-To-Repeat:
Compile the following code with -S -O2 -ml -m4 options.
void
loop_p (np, non0, coeff)
int np,non0;
double coeff[][2048];
{
int i, j, k;
double tmp1;
for (j = non0;j < np;j++)
for (k = 0;k < j;k++) {
coeff[j][j] -= tmp1 * coeff[j][k]; <-- HERE
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: