public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: naveens@noida.hclt.com
To: gcc-gnats@gcc.gnu.org
Cc: sanjivg@noida.hcltech.com
Subject: optimization/5374: NON_OPTIMAL CODE GENERATED FOR SH4
Date: Mon, 14 Jan 2002 02:36:00 -0000	[thread overview]
Message-ID: <20020114103058.2574.qmail@sources.redhat.com> (raw)


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


             reply	other threads:[~2002-01-14 10:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-14  2:36 naveens [this message]
2002-02-22 20:55 rodrigc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020114103058.2574.qmail@sources.redhat.com \
    --to=naveens@noida.hclt.com \
    --cc=gcc-gnats@gcc.gnu.org \
    --cc=sanjivg@noida.hcltech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).