This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Someone introduced a libiberty crashing bug in the past week
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: gcc-bugs at gcc dot gnu dot org, Gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 20 Jun 2005 16:05:24 +0000 (UTC)
- Subject: Re: Someone introduced a libiberty crashing bug in the past week
- References: <1119281986.7527.5.camel@linux-009002219139.watson.ibm.com>
On Mon, 20 Jun 2005, Daniel Berlin wrote:
> The crash line is
> 3729 if (pedantic && !DECL_IN_SYSTEM_HEADER (fundecl))
>
> Here, fundecl is null.
Any problem with fundecl being null should also be reproducible with a
call through a function pointer where fundecl would never have been set to
non-null anyway. Restoring
fundecl = function;
in the if (TREE_CODE (function) == FUNCTION_DECL) part of
build_function_call should fix the particular ICE, but the problem with
function pointers should still get a PR filed.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)