🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1956

Trying to get GCC V.1.30 to compile itself with '-fstrength-reduce'

#1956
From: lmayk!lgm
Date: Sat, 19 Nov 1988 12:57
32 lines
1822 bytes
I have recently been trying to use the new '-fstrength-reduce'
optimization on GNU CC Version 1.30, on an AT&T UNIX PC 3B1
Computer (which runs a Motorola 68010).  In particular, I have been
trying to get GCC to compile itself with '-fstrength-reduce' *plus*
all other possible optimizations.

I first ran into the problem with "genemit.c".  I posted this
problem several days ago.  I soon was mailed a fix from Jim Wilson
at 'wilson@ji.berkeley.edu', and the fix works.

I eventually found two more files which were being compiled
incorrectly. "reload.c" ran correctly when compiled by '-O
-fomit-frame-pointer -fcombine-regs -fforce-addr -fforce-mem' but
core-dumped when '-fstrength-reduce' was added to its compilation
line. "cccp.c" ran correctly when compiled by '-O
-fomit-frame-pointer -fcombine-regs' but core-dumped
when '-fstrength-reduce' was added. (I have already posted a bug
preventing me from using '-fforce-mem' or '-fforce-addr' on
"cccp.c".)  Unfortunately, I was unable to identify any clearly
incorrect code generation for either file, even after a fairly
close inspection of the assembly language differences with and
without '-fstrength-reduce'.

After adjusting the compilation lines for "reload.c" and "cccp.c",
GCC Version 1.30 indeed correctly compiles itself with
'-fstrength-reduce'.


	Lawrence G. Mayka
	Aurora, Illinois

	chinet!lmayk!lgm
Technical Details
Message-ID: <8811191248.aa29327@gamma.eecs.nwu.edu>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!ODDJOB.UCHICAGO.EDU!lmayk!lgm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!ODDJOB.UCHICAGO.EDU!lmayk!lgm
From: lmayk!lgm@ODDJOB.UCHICAGO.EDU
Newsgroups: gnu.gcc.bug
Subject: Trying to get GCC V.1.30 to compile itself with '-fstrength-reduce'
Message-ID: <8811191248.aa29327@gamma.eecs.nwu.edu>
Date: 19 Nov 88 12:57:50 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32