This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16559] Incorrect code generated for function pointer
- From: "wilson at specifixinc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2004 01:11:25 -0000
- Subject: [Bug target/16559] Incorrect code generated for function pointer
- References: <20040715070433.16559.hjl@lucon.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wilson at specifixinc dot com 2004-07-16 01:11 -------
Subject: Re: Incorrect code generated for function pointer
On Thu, 2004-07-15 at 17:52, hjl at lucon dot org wrote:
> I agree we can ignore large offset if we don't want to spend time on it. What does
> gcc do with large offset? Does it generate wrong code or abort? My test shows
> that gcc 3.4 generates wrong code with large offset. I think it should abort.
Yes, we generate wrong code, but then this isn't valid C code, and this
code has no possible use, so I don't see any reason to worry about it.
At least not for the gcc-3.3 or gcc-3.4 releases. It might be
reasonable to do something on mainline. It wouldn't be hard to add a
few checks for special SYMBOL_REFs and call abort if they weren't
handled right.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16559