🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1582

Bug in config/sparc.h from gcc 2.3.3

#1582
From: James Buster
Date: Tue, 05 Jan 1993 01:53
25 lines
1372 bytes
A format string passed to fprintf() is wrong in PRINT_OPERAND_ADDRESS.

*** sparc.h	Mon Jan  4 17:14:42 1993
--- sparc.h.new	Mon Jan  4 17:14:52 1993
***************
*** 1716,1722 ****
  	base = XEXP (addr, 0), index = XEXP (addr, 1);		\
        fputs (reg_names[REGNO (base)], FILE);			\
        if (index == 0)						\
! 	fprintf (FILE, "%+d", offset);				\
        else if (GET_CODE (index) == REG)				\
  	fprintf (FILE, "+%s", reg_names[REGNO (index)]);	\
        else if (GET_CODE (index) == SYMBOL_REF)			\
--- 1727,1733 ----
  	base = XEXP (addr, 0), index = XEXP (addr, 1);		\
        fputs (reg_names[REGNO (base)], FILE);			\
        if (index == 0)						\
! 	fprintf (FILE, "+%d", offset);				\
        else if (GET_CODE (index) == REG)				\
  	fprintf (FILE, "+%s", reg_names[REGNO (index)]);	\
        else if (GET_CODE (index) == SYMBOL_REF)			\

-- 
				James Buster
			     bitbug@netcom.com
Technical Details
Message-ID: <1993Jan5.015315.19262@netcom.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!bitbug

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!bitbug
From: bitbug@netcom.com (James Buster)
Subject: Bug in config/sparc.h from gcc 2.3.3
Message-ID: <1993Jan5.015315.19262@netcom.com>
Sender: gnulists@ai.mit.edu
Organization: Lynx Real-Time Systems, Inc.
Distribution: gnu
Date: Tue, 5 Jan 1993 01:53:15 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 26