This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/5374: NON_OPTIMAL CODE GENERATED FOR SH4



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]