🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #256

GCC Version 2.1 on DG Aviion, a 88100 based machine

#256
From: Surendar Chandra
Date: Tue, 04 Aug 1992 20:38
18 lines
1312 bytes
I've been trying to make gcc compile code for divisions, without generating
traps to 503. I use the option '-muse-div-instruction -mno-check-zero-division'
and it seems to work if the operands involved in the operation are variables.
However, if the operation is done for constants, it generates this trap to 
503 and ignores my options. Looking at the code in m88k.md, it looks like 
it does not process TARGET_CHECK_ZERO_DIV or TARGET_USE_DIV if op2 is 
const0_rtx. Why was this done like this? Is this part of some optimization?

Thanks for any help
surendar

-- 
=======================================================================
Surendar Chandra				 Office:(508) 831-5118(msg)
Home: 152, West St, #4	  Off: 145, Fuller Labs, Home  :(508) 754-5691
      Worcester, MA 01609      Worcester Polytech. Inst.  
			       Worcester, MA 01609
      					Internet: surendar@{maxine,wpi}.wpi.edu 
Technical Details
Message-ID: <6903.9208042038@chpc.chpc.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!chpc.org!surendar

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!chpc.org!surendar
From: surendar@chpc.org (Surendar Chandra)
Subject: GCC Version 2.1 on DG Aviion, a 88100 based machine
Message-ID: <6903.9208042038@chpc.chpc.org>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 4 Aug 1992 20:38:55 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 19