r176188 - in /branches/google/main/gcc: ChangeL...

delesley@gcc.gnu.org delesley@gcc.gnu.org
Mon Jul 11 22:42:00 GMT 2011


Author: delesley
Date: Mon Jul 11 22:42:35 2011
New Revision: 176188

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176188
Log:

This patch modifies the behavior of cp_get_virtual_function_decl in
gcc/cp/class.c so that it returns NULL if the function declaration
cannot be found.  The previous behavior was to fail with a
segmentation fault.  The method-not-found case may occur when
Annotalysis uses the function to look up a method, in cases where the
static type cannot be accurately determined.


Modified:
    branches/google/main/gcc/ChangeLog.google-main
    branches/google/main/gcc/cp/class.c
    branches/google/main/gcc/testsuite/ChangeLog.annotalysis
    branches/google/main/gcc/testsuite/g++.dg/thread-ann/thread_annot_lock-79.C
    branches/google/main/gcc/tree-threadsafe-analyze.c



More information about the Gcc-cvs mailing list