home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / gcc / bug / 2296 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1021 b   |  41 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!shasta.stanford.edu!bwilson
  3. From: bwilson@shasta.stanford.edu (Bob Wilson)
  4. Subject: Re: need test for negative constants in output_addr_const()
  5. Message-ID: <9209091930.AA21890@life.ai.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. References: <9209090541.AA12174@mole.gnu.ai.mit.edu>
  9. Distribution: gnu
  10. Date: Wed, 9 Sep 1992 19:30:14 GMT
  11. Approved: bug-gcc@prep.ai.mit.edu
  12. Lines: 27
  13.  
  14. > The case you are concerned with should never happen.  In GCC 2, the
  15. > second argument of a MINUS should never be an integer constant.  If
  16. > this ever happens, please send a bug report with a test case.
  17. > (The fix that you sent won't work.  It gets the sign wrong in the output.)
  18.  
  19. OK, here's a simple test case.  This produces something like ".word buf--432"
  20. in the MIPS .s file.
  21.  
  22.  
  23. static char buf[512];
  24.  
  25. static struct io {
  26.     int fd;
  27.     char *bp;
  28.     char *buffer;
  29.     char *limit;
  30. } iob[] = {
  31.     0, 0, 0, 0,
  32.     1, buf, buf, buf + sizeof buf - 80
  33. };
  34.  
  35. main()
  36. {
  37. }
  38.  
  39.