home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / gcc / bug / 3114 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.3 KB  |  39 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!netcom.com!bitbug
  3. From: bitbug@netcom.com (James Buster)
  4. Subject: Bug in config/sparc.h from gcc 2.3.3
  5. Message-ID: <1993Jan5.015315.19262@netcom.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Lynx Real-Time Systems, Inc.
  8. Distribution: gnu
  9. Date: Tue, 5 Jan 1993 01:53:15 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 26
  12.  
  13. A format string passed to fprintf() is wrong in PRINT_OPERAND_ADDRESS.
  14.  
  15. *** sparc.h    Mon Jan  4 17:14:42 1993
  16. --- sparc.h.new    Mon Jan  4 17:14:52 1993
  17. ***************
  18. *** 1716,1722 ****
  19.       base = XEXP (addr, 0), index = XEXP (addr, 1);        \
  20.         fputs (reg_names[REGNO (base)], FILE);            \
  21.         if (index == 0)                        \
  22. !     fprintf (FILE, "%+d", offset);                \
  23.         else if (GET_CODE (index) == REG)                \
  24.       fprintf (FILE, "+%s", reg_names[REGNO (index)]);    \
  25.         else if (GET_CODE (index) == SYMBOL_REF)            \
  26. --- 1727,1733 ----
  27.       base = XEXP (addr, 0), index = XEXP (addr, 1);        \
  28.         fputs (reg_names[REGNO (base)], FILE);            \
  29.         if (index == 0)                        \
  30. !     fprintf (FILE, "+%d", offset);                \
  31.         else if (GET_CODE (index) == REG)                \
  32.       fprintf (FILE, "+%s", reg_names[REGNO (index)]);    \
  33.         else if (GET_CODE (index) == SYMBOL_REF)            \
  34.  
  35. -- 
  36.                 James Buster
  37.                  bitbug@netcom.com
  38.  
  39.