optimization/5375: NON_OPTIMAL CODE GENERATED FOR SH4
naveens@noida.hclt.com
naveens@noida.hclt.com
Mon Jan 14 02:46:00 GMT 2002
>Number: 5375
>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:46:13 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Naveen Sharma.
>Release: 3.0.3
>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:
More information about the Gcc-prs
mailing list