🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1137

Re: gcc 2.2.2 on hpux generate bad assembly code

#1137
From: Tim Moore
Date: Sun, 13 Sep 1992 14:38
41 lines
2041 bytes
In article <1992Sep12.051459.21737@solucor.uucp> jack@solucor.UUCP (Jacques Gelinas) writes:

   I have built GCC 2.2.2 on HPUX 8.02 on a HP9000-827. I have
   managed to get a clean compile (stage1 stage2 stage3 and compare)
   by playing some game. I have found two bugs in the assembly
   code generated by the compiler.

   The following program crashes with an illegal instruction trap:

   int main()
   {
	   float a=0;
	   a = a + 1;
   }

   The module enquire.c which generate float.h crash this way.
   On the other hand, change float for double and all goes right.
   So I rebuild the compiler, adding on the command line
   "-Dfloat=double". Then I got a clean compile.

You may have configured gcc to generate code for a pa-risc 1.1
machine. Did you configure using "configure hppa1.0-hpux"?

   I start to compile a large CAD project, thinking that this
   bug could be solve later (converting every float to double).

   Doing so, after compiling a lot of code, I got another
   problem. This time, it was flag by the assembler. It is related
   to the number of parameter when generating the beginning of a function.
   It generates and .export assembly statement:

     Argument 1 or 3 in FARG upper
	   - lookahead = ARGW4=FR,RTNVAL=GR
 
Again, this is a symptom of configuration problem. Make sure you are
configured for hppa1.0.

--
Tim Moore                    moore@cs.utah.edu {bellcore,hplabs}!utah-cs!moore
"Wind in my hair - Shifting and drifting - Mechanical music - Adrenaline surge"
	- Rush
Technical Details
Message-ID: <MOORE.92Sep13103824@defmacro.cs.utah.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hellgate.utah.edu!moore%cs
References: moore%cs@hellgate.utah.edu (Tim Moore)

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!hellgate.utah.edu!moore%cs
From: moore%cs@hellgate.utah.edu (Tim Moore)
Subject: Re: gcc 2.2.2 on hpux generate bad assembly code
Message-ID: <MOORE.92Sep13103824@defmacro.cs.utah.edu>
Sender: gnulists@ai.mit.edu
Organization: University of Utah CS Dept
References: moore%cs@hellgate.utah.edu (Tim Moore)
Distribution: gnu
Date: Sun, 13 Sep 1992 14:38:24 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 42