Article View: gnu.gcc.bug
Article #1102Re: need test for negative constants in output_addr_const()
From: Bob Wilson
Date: Wed, 09 Sep 1992 19:30
Date: Wed, 09 Sep 1992 19:30
26 lines
1059 bytes
1059 bytes
> 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()
{
}
Technical Details
Message-ID:
<9209091930.AA21890@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!shasta.stanford.edu!bwilsonReferences:
<9209090541.AA12174@mole.gnu.ai.mit.edu>Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!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