This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/16559] Incorrect code generated for function pointer


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]