home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: 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
-
- 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
-
-