Bug 8873 - Optimization on alpha (ev5)
Summary: Optimization on alpha (ev5)
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 3.2.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: wrong-code
Depends on:
Blocks:
 
Reported: 2002-12-08 07:16 UTC by martin
Modified: 2003-06-29 02:37 UTC (History)
5 users (show)

See Also:
Host: alphaev5-bruli-linux-gnu
Target: alphaev5-bruli-linux-gnu
Build: alphaev5-bruli-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2002-12-08 07:16:00 UTC
	Compiling glibc-2.3.1 using -mcpu=ev5 generates code that does
	not run correctly on alpha/ev5. 
	Compiling ssh-3.1 using -mcpu=ev5 generates code that does not
	run at all.

Release:
3.2.1

Environment:
System: Linux alps 2.4.19 #3 Mon Nov 25 10:57:02 MET 2002 alpha unknown
Architecture: alpha

host: alphaev5-bruli-linux-gnu
build: alphaev5-bruli-linux-gnu
target: alphaev5-bruli-linux-gnu
configured with: ./configure --prefix=/usr --exec-prefix=/usr --host=alphaev5-bruli-linux --enable-threads=posix --enable-shared --disable-static

How-To-Repeat:
	Compile the source using -mcpu=ev5 on a ev5 machine and try
	to run this code.
Comment 1 martin 2002-12-08 07:16:00 UTC
Fix:
	Using -mcpu=ev4 generates runnable code. (The advantages of
	the ev5 over the ev4 is lost).
Comment 2 falk.hueffner 2002-12-09 00:40:54 UTC
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
To: martin@bruli.net
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: optimization/8873: Optimization on alpha (ev5)
Date: 09 Dec 2002 00:40:54 +0100

 martin@bruli.net writes:
 
 > 	Compiling glibc-2.3.1 using -mcpu=ev5 generates code that does
 > 	not run correctly on alpha/ev5. 
 
 In which way?
 
 > 	Compiling ssh-3.1 using -mcpu=ev5 generates code that does not
 > 	run at all.
 
 Could you be more specific? Does it crash? With what signal?
 
 -- 
 	Falk
Comment 3 Eric Botcazou 2003-02-18 13:40:08 UTC
State-Changed-From-To: open->feedback
State-Changed-Why: We need more information to identify the problem. Could you narrow it down to a specific chunk of code?
Comment 4 martin 2003-02-18 18:14:32 UTC
From: <martin@bruli.net>
To: <ebotcazou@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>,
       <martin@bruli.net>, <nobody@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org>
Cc:  
Subject: RE: optimization/8873: Optimization on alpha (ev5)
Date: Tue, 18 Feb 2003 18:14:32 +0100

 Hi,
 
 No I can't.
 The last gcc version you can compile and run all off
 - linux-2.4
 - glibc-2.2.5
 - modutils-2.4
 is 2.95.3. All later version will generate invalid (not runnable
 code) on my alphas. And I have tested _all_ versions after 2.95.3.
 No I went back to 2.95.3 with the disadvantage that the most
 recent glibc version that can be compiled is 2.2.5.
 
 Regards,
 Martin
 
 > -----Original Message-----
 > From: ebotcazou@gcc.gnu.org [mailto:ebotcazou@gcc.gnu.org]=20
 > Sent: Tuesday, February 18, 2003 2:40 PM
 > To: gcc-bugs@gcc.gnu.org; gcc-prs@gcc.gnu.org;=20
 > martin@bruli.net; nobody@gcc.gnu.org
 > Subject: Re: optimization/8873: Optimization on alpha (ev5)
 >=20
 >=20
 > Synopsis: Optimization on alpha (ev5)
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: ebotcazou
 > State-Changed-When: Tue Feb 18 13:40:08 2003
 > State-Changed-Why:
 >     We need more information to identify the problem. Could=20
 > you narrow it down to a specific chunk of code?
 >=20
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&database=3D=
 gcc&p
 r=3D8873
 

Comment 5 Eric Botcazou 2003-02-19 09:55:42 UTC
From: Eric Botcazou <ebotcazou@libertysurf.fr>
To: <martin@bruli.net>
Cc: <gcc-bugs@gcc.gnu.org>,
 <nobody@gcc.gnu.org>,
 <gcc-gnats@gcc.gnu.org>
Subject: Re: optimization/8873: Optimization on alpha (ev5)
Date: Wed, 19 Feb 2003 09:55:42 +0100

 > No I can't.
 
 Then this will be very tricky to sort out the problem.
 
 > The last gcc version you can compile and run all off
 > - linux-2.4
 > - glibc-2.2.5
 > - modutils-2.4
 > is 2.95.3. All later version will generate invalid (not runnable
 > code) on my alphas. And I have tested _all_ versions after 2.95.3.
 > No I went back to 2.95.3 with the disadvantage that the most
 > recent glibc version that can be compiled is 2.2.5.
 
 Which versions did you try?
 
 -- 
 Eric Botcazou

Comment 6 martin 2003-03-07 10:30:18 UTC
From: <martin@bruli.net>
To: <gcc-gnats@gcc.gnu.org>
Cc:  
Subject: Re: optimization/8873: Optimization on alpha (ev5)
Date: Fri, 7 Mar 2003 10:30:18 +0100

  > The last gcc version you can compile and run all off
  > - linux-2.4
  > - glibc-2.2.5
  > - modutils-2.4
  > is 2.95.3. All later version will generate invalid (not runnable
  > code) on my alphas. And I have tested _all_ versions after 2.95.3.
  > No I went back to 2.95.3 with the disadvantage that the most
  > recent glibc version that can be compiled is 2.2.5.
  
  Which versions did you try?
 
 All.
 
 - 3.0.1
 - 3.0.2
 - 3.0.3
 - 3.0.4
 - 3.1
 - 3.1.1
 - 3.2
 - 3.2.1
 
 This took me about one year! Because after compile and install
 of the compile I rebuilt or at least I tried to rebuild all of
 
 1. binutils
 2. gcc again, with the new binutils from step 1
 3. linux kernel
 4. modutils
 5. glibc-2.2.5
 
 After the rebuild of all this I run the new installation and
 tested out some applications including
 
 - apache
 - mysql
 - squid
 - ssh
 - wu-ftpd
 - openssl
 - ISC bind
 - gdb
 
 The test consisted of compile/build, install and run some test
 scripts comparing the results to the correct results generated
 on a gcc-2.95.3 based installation.
 
 When ever I found fatal errors I went to the next gcc version
 starting at the beginning of the build process but it got worse
 from version to version.
 
 At the end I gave up and reinstalled the system totally based on
 gcc-2.95.3. - That's the story.
 
 
 Regards,
 
 -- Martin
Comment 7 Dara Hazeghi 2003-06-02 05:07:43 UTC
Hello,

while you are rather understandably frustrated with the issue here, this issue is unlikely to be 
resolved simply by keeping this bug in feedback, with no specific testcase and no specific error 
messages. So I would like to suggest the following:

Try gcc 3.3 (currently the latest and greatest).
If you can narrow down the problem, that'd be great, if not, can you send a precise error, and 
precise instructions for repeating the problem.
If this problem is still present, and we have such a summary, we'll try to get one of the 
"authorities" to take a look at the issue.

Sound reasonable?

Thanks,

Dara
Comment 8 Dara Hazeghi 2003-06-29 02:37:30 UTC
3 months waiting for feedback. Closing. If you still have this problem with gcc 3.3, send minimal 
testcase (or information how to obtain one) and we'll reopen this.