This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Jump to const_int
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Subject: Re: RFC: Jump to const_int
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Fri, 12 Jan 2001 22:40:31 -0500 (EST)
- Cc: gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
> I found the following testcase fails (991213-3.c) with the above abort:
>
> int jump () { goto * (int (*) ()) 0xbabebec0; }
One further thought. The test looks bogus to me because the address
clearly can't be in the current function. Thus, the behavior of such
a jump is totally unpredictable.
Gcc allows as an extension goto's to any void * expression. Thus, the
above is accepted but it will clearly cause problems when edges are
to be calculated.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)