home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!cis.ohio-state.edu!shasta.stanford.edu!bwilson
- From: bwilson@shasta.stanford.edu (Bob Wilson)
- Subject: Re: need test for negative constants in output_addr_const()
- Message-ID: <9209091930.AA21890@life.ai.mit.edu>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- References: <9209090541.AA12174@mole.gnu.ai.mit.edu>
- Distribution: gnu
- Date: Wed, 9 Sep 1992 19:30:14 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 27
-
- > The case you are concerned with should never happen. In GCC 2, the
- > second argument of a MINUS should never be an integer constant. If
- > this ever happens, please send a bug report with a test case.
- >
- > (The fix that you sent won't work. It gets the sign wrong in the output.)
- >
-
- OK, here's a simple test case. This produces something like ".word buf--432"
- in the MIPS .s file.
-
-
- static char buf[512];
-
- static struct io {
- int fd;
- char *bp;
- char *buffer;
- char *limit;
- } iob[] = {
- 0, 0, 0, 0,
- 1, buf, buf, buf + sizeof buf - 80
- };
-
- main()
- {
- }
-
-